public interface RelationTypeMaker
RelationType
s. RelationType can be configured to provide data verification,
better storage efficiency, and higher performance. The RelationType defines the schema for all TitanRelation
s
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)
RelationType
s 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()
RelationType
Copyright © 2012–2015. All rights reserved.