public static interface PropertyKey.Builder
| Modifier and Type | Method and Description |
|---|---|
PropertyKey |
add()
Create and add the property type to the schema.
|
PropertyKey.Builder |
addPropertyKeys(java.lang.String... propertyKeys)
Add property keys to the vertex label
|
PropertyKey.Builder |
bounds(double minX,
double minY,
double maxX,
double maxY)
Applies to Point type only.
|
PropertyKey.Builder |
cardinality(Cardinality cardinality)
Sets the cardinality for this property key.
|
PropertyKey.Builder |
geoBounds()
Applies to Point type only.
|
PropertyKey.Builder |
ifNotExists() |
default PropertyKey.Builder |
multiple()
Sets the cardinality for this property key to multiple (which is the default).
|
default PropertyKey.Builder |
single()
Sets the cardinality for this property key to single.
|
PropertyKey.Builder |
ttl(java.time.Duration ttl) |
PropertyKey.Builder cardinality(Cardinality cardinality)
Cardinality.Single then only
a single value may be associated with this key. If the cardinality
is Cardinality.Multiple then multiple values can be associated.
The default cardinality is Cardinality.Multiple.cardinality - The cardinality of this property key.default PropertyKey.Builder single()
cardinality(Cardinality)default PropertyKey.Builder multiple()
cardinality(Cardinality)PropertyKey.Builder ttl(java.time.Duration ttl)
ttl - The time to live for the property key. Once expired the edge will be automatically removed.PropertyKey.Builder ifNotExists()
PropertyKey add()
PropertyKey.Builder addPropertyKeys(java.lang.String... propertyKeys)
propertyKeys - The property key.PropertyKey.Builder bounds(double minX, double minY, double maxX, double maxY)
minX - The minimum X valueminY - The minimum Y valuemaxX - The max X valuemaxY - The max Y valuePropertyKey.Builder geoBounds()