public interface PropertyKey extends Named, Identified
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PropertyKey.Builder
Builder interface for properties.
|
static interface |
PropertyKey.Validator<T>
A validator is a user configurable object that restricts the valid values of a property key.
|
| Modifier and Type | Method and Description |
|---|---|
PropertyKey |
addPropertyKey(java.lang.String name)
Register that a particular property key may be used on properties with this property key.
|
Cardinality |
cardinality() |
ValueType |
dataType() |
void |
drop()
Drop the property key from the schema
|
void |
dropPropertyKey(java.lang.String name)
Drop registration that a particular property key may be used on properties with this particular key.
|
SchemaId |
id()
Unique identifier for this entity.
|
java.util.Set<? extends PropertyKey> |
propertyKeys() |
java.util.Optional<java.time.Duration> |
ttl() |
java.util.List<PropertyKey.Validator<?>> |
validators() |
SchemaId id()
id in interface IdentifiedValueType dataType()
java.util.Optional<java.time.Duration> ttl()
Cardinality cardinality()
Cardinality.Single means only one property of this key is allowed
on a vertex. Cardinality.Multiple allows multiple on a vertex. Edges only support single.java.util.Set<? extends PropertyKey> propertyKeys()
PropertyKey addPropertyKey(java.lang.String name)
name - The property key namevoid dropPropertyKey(java.lang.String name)
name - The property key namevoid drop()
java.util.List<PropertyKey.Validator<?>> validators()