public class StandardPropertyKeyMaker extends StandardRelationTypeMaker implements PropertyKeyMaker
attributeHandler, indexSerializer, tx| Constructor and Description |
|---|
StandardPropertyKeyMaker(StandardTitanTx tx,
String name,
IndexSerializer indexSerializer,
AttributeHandler attributeHandler) |
| Modifier and Type | Method and Description |
|---|---|
StandardPropertyKeyMaker |
cardinality(Cardinality cardinality)
Configures the
Cardinality of this property key. |
StandardPropertyKeyMaker |
dataType(Class<?> clazz)
Configures the data type for this property key.
|
StandardPropertyKeyMaker |
invisible() |
PropertyKey |
make()
Defines the
PropertyKey specified by this PropertyKeyMaker and returns the resulting key. |
StandardPropertyKeyMaker |
signature(PropertyKey... types)
Configures the signature of this relation type.
|
StandardPropertyKeyMaker |
sortKey(PropertyKey... types)
Configures the composite sort key for this label.
|
StandardPropertyKeyMaker |
sortOrder(Order order)
Defines in which order to sort the relations for efficient retrieval, i.e.
|
getMultiplicity, getName, hasSortKey, makeDefinition, multiplicity, name, statusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic StandardPropertyKeyMaker(StandardTitanTx tx, String name, IndexSerializer indexSerializer, AttributeHandler attributeHandler)
public StandardPropertyKeyMaker dataType(Class<?> clazz)
PropertyKeyMakerdataType in interface PropertyKeyMakerclazz - Data type to be configured.PropertyKey.dataType()public StandardPropertyKeyMaker cardinality(Cardinality cardinality)
PropertyKeyMakerCardinality of this property key.cardinality in interface PropertyKeyMakerpublic StandardPropertyKeyMaker invisible()
invisible in class StandardRelationTypeMakerpublic StandardPropertyKeyMaker signature(PropertyKey... types)
RelationTypeMakerRelationTypes used in the signature must be either property out-unique keys or out-unique unidirected edge labels.
signature in interface PropertyKeyMakersignature in interface RelationTypeMakersignature in class StandardRelationTypeMakertypes - PropertyKey composing the signature for the configured relation type. The order is irrelevant.public StandardPropertyKeyMaker sortKey(PropertyKey... types)
StandardRelationTypeMakercom.thinkaurelius.titan.core.TitanVertexQuery#interval(com.thinkaurelius.titan.core.PropertyKey, Comparable, Comparable).
RelationTypes used in the sort key must be either property out-unique keys or out-unique unidirected edge lables.sortKey in class StandardRelationTypeMakertypes - TitanTypes composing the sort key. The order is relevant.public StandardPropertyKeyMaker sortOrder(Order order)
StandardRelationTypeMakerOrder.ASC) or
decreasing (Order.DESC).
Note, that only one sort order can be specified and that a sort key must be defined to use a sort order.sortOrder in class StandardRelationTypeMaker#sortKey(RelationType...)public PropertyKey make()
PropertyKeyMakerPropertyKey specified by this PropertyKeyMaker and returns the resulting key.make in interface PropertyKeyMakermake in interface RelationTypeMakerPropertyKeyCopyright © 2012–2015. All rights reserved.