public static interface VertexLabel.Builder
| Modifier and Type | Method and Description |
|---|---|
VertexLabel |
add()
Create and add the vertex label to the schema.
|
VertexLabel.Builder |
addAdjacency(java.lang.String edgeLabel,
org.apache.tinkerpop.gremlin.structure.Direction direction,
java.lang.String adjacentVertexLabel)
Add an adjacency to the vertex label
|
default VertexLabel.Builder |
addAdjacency(java.lang.String edgeLabel,
java.lang.String adjacentVertexLabel)
Add an adjacency to the vertex label in both directions
|
VertexLabel.Builder |
addPropertyKeys(java.lang.String... propertyKeys)
Add property keys to the vertex label
|
default VertexLabel.Builder |
clusteringId(java.lang.String propertyKey)
Adds the given property key as a clustering ID to this vertex labels custom vertex id.
|
VertexLabel.Builder |
idComponent(PropertyKey propertyKey,
IdPropertyKey.Type type)
Add a key that makes up the id component of this vertex label.
|
VertexLabel.Builder |
idComponent(java.lang.String propertyKey,
IdPropertyKey.Type type)
Add a key that makes up the ID component of this vertex label.
|
VertexLabel.Builder |
ifNotExists() |
default VertexLabel.Builder |
partitionId(java.lang.String propertyKey)
Adds the given property key as a partition ID to this vertex labels custom vertex id.
|
VertexLabel.Builder |
ttl(java.time.Duration ttl) |
VertexLabel add()
VertexLabel.Builder ttl(java.time.Duration ttl)
ttl - The time to live for the vertex label. Once expired the vertex will be automatically removed.VertexLabel.Builder idComponent(java.lang.String propertyKey, IdPropertyKey.Type type)
IdPropertyKey.Type.Partition is required.propertyKey - The name of the property key. This key already have been defined.type - The type of the id component as defined in IdPropertyKey.Type.default VertexLabel.Builder partitionId(java.lang.String propertyKey)
propertyKey - The name of the property key. This key already have been defined.idComponent(String, IdPropertyKey.Type)default VertexLabel.Builder clusteringId(java.lang.String propertyKey)
propertyKey - The name of the property key. This key already have been defined.VertexLabel.Builder idComponent(PropertyKey propertyKey, IdPropertyKey.Type type)
propertyKey - The property key.type - The type of the id component.idComponent(String, IdPropertyKey.Type)VertexLabel.Builder addPropertyKeys(java.lang.String... propertyKeys)
propertyKeys - The property key.VertexLabel.Builder addAdjacency(java.lang.String edgeLabel, org.apache.tinkerpop.gremlin.structure.Direction direction, java.lang.String adjacentVertexLabel)
edgeLabel - The name of the edge labeldirection - The direction of the allowed edge. May be IN, OUT or BOTHadjacentVertexLabel - The name of adjacent vertex labeldefault VertexLabel.Builder addAdjacency(java.lang.String edgeLabel, java.lang.String adjacentVertexLabel)
edgeLabel - The name of the edge labeladjacentVertexLabel - The name of adjacent vertex labelVertexLabel.Builder ifNotExists()