public interface DefaultSchemaMaker
makeVertexLabel(VertexLabelMaker),
makeEdgeLabel(EdgeLabelMaker), or makePropertyKey(PropertyKeyMaker) methods respectively.
RelationTypeMaker| Modifier and Type | Method and Description |
|---|---|
Cardinality |
defaultPropertyCardinality(String key) |
default void |
enableLogging(Boolean enabled)
Enable/Disable logging in schema maker
|
boolean |
ignoreUndefinedQueryTypes()
Whether to ignore undefined types occurring in a query.
|
default void |
makeConnectionConstraint(EdgeLabel edgeLabel,
VertexLabel outVLabel,
VertexLabel inVLabel,
SchemaManager manager)
Add a constraint on which vertices the given edge label can connect using the schema manager.
|
default EdgeLabel |
makeEdgeLabel(EdgeLabelMaker factory)
Creates a new edge label with default settings against the provided
EdgeLabelMaker. |
default void |
makePropertyConstraintForEdge(EdgeLabel edgeLabel,
PropertyKey key,
SchemaManager manager)
Add property constraints for a given edge label using the schema manager.
|
default void |
makePropertyConstraintForVertex(VertexLabel vertexLabel,
PropertyKey key,
SchemaManager manager)
Add property constraints for a given vertex label using the schema manager.
|
default PropertyKey |
makePropertyKey(PropertyKeyMaker factory)
Creates a new property key with default settings against the provided
PropertyKeyMaker. |
default PropertyKey |
makePropertyKey(PropertyKeyMaker factory,
Object value)
Creates a new property key with default settings against the provided
PropertyKeyMaker and value. |
default VertexLabel |
makeVertexLabel(VertexLabelMaker factory)
Creates a new vertex label with the default settings against the provided
VertexLabelMaker. |
default void enableLogging(Boolean enabled)
enabled - default EdgeLabel makeEdgeLabel(EdgeLabelMaker factory)
EdgeLabelMaker.factory - EdgeLabelMaker through which the edge label is createdIllegalArgumentException - if the name is already in use or if other configured values are invalid.Cardinality defaultPropertyCardinality(String key)
default PropertyKey makePropertyKey(PropertyKeyMaker factory)
PropertyKeyMaker.factory - PropertyKeyMaker through which the property key is createdIllegalArgumentException - if the name is already in use or if other configured values are invalid.default PropertyKey makePropertyKey(PropertyKeyMaker factory, Object value)
PropertyKeyMaker and value.factory - PropertyKeyMaker through which the property key is createdvalue - the value of the property. The default implementation does not use this parameter.IllegalArgumentException - if the name is already in use or if other configured values are invalid.default VertexLabel makeVertexLabel(VertexLabelMaker factory)
VertexLabelMaker.factory - VertexLabelMaker through which the vertex label is createdIllegalArgumentException - if the name is already in use or if other configured values are invalid.boolean ignoreUndefinedQueryTypes()
If this method returns true, then undefined types referred to in a JanusGraphVertexQuery will be silently
ignored and an empty result set will be returned. If this method returns false, then usage of undefined types
in queries results in an IllegalArgumentException.
default void makePropertyConstraintForVertex(VertexLabel vertexLabel, PropertyKey key, SchemaManager manager)
vertexLabel - to which the constraint applies.key - defines the property which should be added to the vertex label as a constraint.manager - is used to update the schema.SchemaManagerdefault void makePropertyConstraintForEdge(EdgeLabel edgeLabel, PropertyKey key, SchemaManager manager)
edgeLabel - to which the constraint applies.key - defines the property which should be added to the edge label as a constraint.manager - is used to update the schema.SchemaManagerdefault void makeConnectionConstraint(EdgeLabel edgeLabel, VertexLabel outVLabel, VertexLabel inVLabel, SchemaManager manager)
edgeLabel - to which the constraint applies.outVLabel - specifies the outgoing vertex for this connection.inVLabel - specifies the incoming vertex for this connection.manager - is used to update the schema.SchemaManagerCopyright © 2012–2023. All rights reserved.