public static interface EdgeLabel.Builder
| Modifier and Type | Method and Description |
|---|---|
EdgeLabel |
add()
Create and add the edge label to the schema.
|
EdgeLabel.Builder |
addPropertyKeys(java.lang.String... propertyKeys)
Add property keys to the edge label
|
EdgeLabel.Builder |
cardinality(Cardinality cardinality)
Sets the cardinality for this edge label.
|
EdgeLabel.Builder |
ifNotExists() |
default EdgeLabel.Builder |
multiple()
Sets the cardinality for this edge label to multiple (which is the default).
|
default EdgeLabel.Builder |
single()
Sets the cardinality for this edge label to single.
|
EdgeLabel.Builder |
ttl(java.time.Duration ttl) |
EdgeLabel.Builder cardinality(Cardinality cardinality)
Cardinality.Single then only
a single edge of this label may exists between any pair of vertices in a given direction. If the cardinality
is Cardinality.Multiple then multiple edges can exist.
The default cardinality is Cardinality.Multiple.cardinality - The cardinality of this edge label.default EdgeLabel.Builder single()
cardinality(Cardinality)default EdgeLabel.Builder multiple()
cardinality(Cardinality)EdgeLabel.Builder ttl(java.time.Duration ttl)
ttl - The time to live for the edge label. Once expired the edge will be automatically removed.EdgeLabel.Builder ifNotExists()
EdgeLabel add()
EdgeLabel.Builder addPropertyKeys(java.lang.String... propertyKeys)
propertyKeys - The property key.