public interface SchemaManager extends SchemaInspector
Modifier and Type | Method and Description |
---|---|
EdgeLabel |
addConnection(EdgeLabel edgeLabel,
VertexLabel outVLabel,
VertexLabel inVLabel)
Add a constraint on which vertices the given edge label can connect.
|
EdgeLabel |
addProperties(EdgeLabel edgeLabel,
PropertyKey... keys)
Add property constraints for a given edge label.
|
VertexLabel |
addProperties(VertexLabel vertexLabel,
PropertyKey... keys)
Add property constraints for a given vertex label.
|
EdgeLabelMaker |
makeEdgeLabel(String name)
Returns a
EdgeLabelMaker instance to define a new EdgeLabel with the given name. |
PropertyKeyMaker |
makePropertyKey(String name)
Returns a
PropertyKeyMaker instance to define a new PropertyKey with the given name. |
VertexLabelMaker |
makeVertexLabel(String name)
Returns a
VertexLabelMaker to define a new vertex label with the given name. |
containsEdgeLabel, containsPropertyKey, containsRelationType, containsVertexLabel, getEdgeLabel, getOrCreateEdgeLabel, getOrCreatePropertyKey, getOrCreatePropertyKey, getOrCreatePropertyKey, getOrCreateVertexLabel, getPropertyKey, getRelationType, getVertexLabel
PropertyKeyMaker makePropertyKey(String name)
PropertyKeyMaker
instance to define a new PropertyKey
with the given name.
By defining types explicitly (rather than implicitly through usage) one can control various
aspects of the key and associated consistency constraints.
The key constructed with this maker will be created in the context of this transaction.
PropertyKeyMaker
linked to this transaction.PropertyKeyMaker
,
PropertyKey
EdgeLabelMaker makeEdgeLabel(String name)
EdgeLabelMaker
instance to define a new EdgeLabel
with the given name.
By defining types explicitly (rather than implicitly through usage) one can control various
aspects of the label and associated consistency constraints.
The label constructed with this maker will be created in the context of this transaction.
EdgeLabelMaker
linked to this transaction.EdgeLabelMaker
,
EdgeLabel
VertexLabelMaker makeVertexLabel(String name)
VertexLabelMaker
to define a new vertex label with the given name. Note, that the name must
be unique.name
- VertexLabel addProperties(VertexLabel vertexLabel, PropertyKey... keys)
vertexLabel
- to which the constraints applies.keys
- defines the properties which should be added to the VertexLabel
as constraints.VertexLabel
edited which contains the added constraints.EdgeLabel addProperties(EdgeLabel edgeLabel, PropertyKey... keys)
EdgeLabel addConnection(EdgeLabel edgeLabel, VertexLabel outVLabel, VertexLabel inVLabel)
edgeLabel
- to which the constraint applies.outVLabel
- specifies the outgoing vertex for this connection.inVLabel
- specifies the incoming vertex for this connection.EdgeLabel
edited which contains the added constraint.Copyright © 2012–2024. All rights reserved.