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, status
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public StandardPropertyKeyMaker(StandardTitanTx tx, String name, IndexSerializer indexSerializer, AttributeHandler attributeHandler)
public StandardPropertyKeyMaker dataType(Class<?> clazz)
PropertyKeyMaker
dataType
in interface PropertyKeyMaker
clazz
- Data type to be configured.PropertyKey.dataType()
public StandardPropertyKeyMaker cardinality(Cardinality cardinality)
PropertyKeyMaker
Cardinality
of this property key.cardinality
in interface PropertyKeyMaker
public StandardPropertyKeyMaker invisible()
invisible
in class StandardRelationTypeMaker
public StandardPropertyKeyMaker signature(PropertyKey... types)
RelationTypeMaker
RelationType
s used in the signature must be either property out-unique keys or out-unique unidirected edge labels.
signature
in interface PropertyKeyMaker
signature
in interface RelationTypeMaker
signature
in class StandardRelationTypeMaker
types
- PropertyKey composing the signature for the configured relation type. The order is irrelevant.public StandardPropertyKeyMaker sortKey(PropertyKey... types)
StandardRelationTypeMaker
com.thinkaurelius.titan.core.TitanVertexQuery#interval(com.thinkaurelius.titan.core.PropertyKey, Comparable, Comparable)
.
RelationType
s used in the sort key must be either property out-unique keys or out-unique unidirected edge lables.sortKey
in class StandardRelationTypeMaker
types
- TitanTypes composing the sort key. The order is relevant.public StandardPropertyKeyMaker sortOrder(Order order)
StandardRelationTypeMaker
Order.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()
PropertyKeyMaker
PropertyKey
specified by this PropertyKeyMaker and returns the resulting key.make
in interface PropertyKeyMaker
make
in interface RelationTypeMaker
PropertyKey
Copyright © 2012–2015. All rights reserved.