Documentation ¶
Overview ¶
_ _
*__ _____ __ ___ ___ __ _| |_ ___ *\ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ * \ V V / __/ (_| |\ V /| | (_| | || __/ * \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| * * Copyright © 2016 - 2019 Weaviate. All rights reserved. * LICENSE: https://github.com/creativesoftwarefdn/weaviate/blob/develop/LICENSE.md * DESIGN & CONCEPT: Bob van Luijt (@bobvanluijt) * CONTACT: hello@creativesoftwarefdn.org
Index ¶
- type JanusGraphConnectorState
- func (s *JanusGraphConnectorState) AddMappedClassName(className schema.ClassName) MappedClassName
- func (s *JanusGraphConnectorState) AddMappedPropertyName(className schema.ClassName, propName schema.PropertyName) MappedPropertyName
- func (s *JanusGraphConnectorState) GetClassNameFromMapped(className MappedClassName) schema.ClassName
- func (s *JanusGraphConnectorState) GetMappedClassName(className schema.ClassName) MappedClassName
- func (s *JanusGraphConnectorState) GetMappedPropertyName(className schema.ClassName, propName schema.PropertyName) MappedPropertyName
- func (s *JanusGraphConnectorState) GetPropertyNameFromMapped(className schema.ClassName, mappedPropName MappedPropertyName) schema.PropertyName
- func (s *JanusGraphConnectorState) RemoveMappedClassName(className schema.ClassName)
- func (s *JanusGraphConnectorState) RemoveMappedPropertyName(className schema.ClassName, propName schema.PropertyName)
- func (s *JanusGraphConnectorState) RenameClass(oldName schema.ClassName, newName schema.ClassName)
- func (s *JanusGraphConnectorState) RenameProperty(className schema.ClassName, oldName schema.PropertyName, ...)
- type MappedClassName
- type MappedPropertyName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JanusGraphConnectorState ¶
type JanusGraphConnectorState struct { Version int64 `json:"version"` LastId int64 `json:"next_id"` ClassMap map[schema.ClassName]MappedClassName `json:"classMap"` PropertyMap map[schema.ClassName]map[schema.PropertyName]MappedPropertyName `json:"propertyMap"` }
Stores the internal JanusGraph connector state. - the version of the connector state - the mappings of class names and property names
func (*JanusGraphConnectorState) AddMappedClassName ¶
func (s *JanusGraphConnectorState) AddMappedClassName(className schema.ClassName) MappedClassName
Add a mapping of a classname to mapped name.
func (*JanusGraphConnectorState) AddMappedPropertyName ¶
func (s *JanusGraphConnectorState) AddMappedPropertyName(className schema.ClassName, propName schema.PropertyName) MappedPropertyName
Add mapping from class/property name to mapped property namej
func (*JanusGraphConnectorState) GetClassNameFromMapped ¶
func (s *JanusGraphConnectorState) GetClassNameFromMapped(className MappedClassName) schema.ClassName
Get the schema name, from a mapped name.
func (*JanusGraphConnectorState) GetMappedClassName ¶
func (s *JanusGraphConnectorState) GetMappedClassName(className schema.ClassName) MappedClassName
Map a schema name to the internal janusgraph name
func (*JanusGraphConnectorState) GetMappedPropertyName ¶
func (s *JanusGraphConnectorState) GetMappedPropertyName(className schema.ClassName, propName schema.PropertyName) MappedPropertyName
Map a schema name to the internal janusgraph name
func (*JanusGraphConnectorState) GetPropertyNameFromMapped ¶
func (s *JanusGraphConnectorState) GetPropertyNameFromMapped(className schema.ClassName, mappedPropName MappedPropertyName) schema.PropertyName
Add mapping from class/property name to mapped property namej
func (*JanusGraphConnectorState) RemoveMappedClassName ¶
func (s *JanusGraphConnectorState) RemoveMappedClassName(className schema.ClassName)
Remove mapped class name, and all properties.
func (*JanusGraphConnectorState) RemoveMappedPropertyName ¶
func (s *JanusGraphConnectorState) RemoveMappedPropertyName(className schema.ClassName, propName schema.PropertyName)
func (*JanusGraphConnectorState) RenameClass ¶
func (s *JanusGraphConnectorState) RenameClass(oldName schema.ClassName, newName schema.ClassName)
func (*JanusGraphConnectorState) RenameProperty ¶
func (s *JanusGraphConnectorState) RenameProperty(className schema.ClassName, oldName schema.PropertyName, newName schema.PropertyName)
type MappedClassName ¶
type MappedClassName string
type MappedPropertyName ¶
type MappedPropertyName string