public interface RelationTypeMaker
RelationTypes. RelationType can be configured to provide data verification,
better storage efficiency, and higher performance. The RelationType defines the schema for all TitanRelations
of that type.
There are two kinds of RelationTypes: EdgeLabel and PropertyKey which
are defined via their builders EdgeLabelMaker and PropertyKeyMaker respectively. This interface just defines builder methods
common to both of them.
RelationType| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of this configured relation type.
|
RelationType |
make()
Builds the configured relation type
|
RelationTypeMaker |
signature(PropertyKey... keys)
Configures the signature of this relation type.
|
String getName()
RelationTypeMaker signature(PropertyKey... keys)
RelationTypes used in the signature must be either property out-unique keys or out-unique unidirected edge labels.
keys - PropertyKey composing the signature for the configured relation type. The order is irrelevant.RelationType make()
RelationTypeCopyright © 2012–2015. All rights reserved.