public abstract class StandardRelationTypeMaker extends Object implements RelationTypeMaker
| Modifier and Type | Field and Description |
|---|---|
protected AttributeHandler |
attributeHandler |
protected IndexSerializer |
indexSerializer |
protected StandardTitanTx |
tx |
| Constructor and Description |
|---|
StandardRelationTypeMaker(StandardTitanTx tx,
String name,
IndexSerializer indexSerializer,
AttributeHandler attributeHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected Multiplicity |
getMultiplicity() |
String |
getName()
Returns the name of this configured relation type.
|
protected boolean |
hasSortKey() |
StandardRelationTypeMaker |
invisible() |
protected TypeDefinitionMap |
makeDefinition() |
StandardRelationTypeMaker |
multiplicity(Multiplicity multiplicity) |
StandardRelationTypeMaker |
name(String name) |
StandardRelationTypeMaker |
signature(PropertyKey... types)
Configures the signature of this relation type.
|
StandardRelationTypeMaker |
sortKey(PropertyKey... keys)
Configures the composite sort key for this label.
|
StandardRelationTypeMaker |
sortOrder(Order order)
Defines in which order to sort the relations for efficient retrieval, i.e.
|
StandardRelationTypeMaker |
status(SchemaStatus status) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeprotected final StandardTitanTx tx
protected final IndexSerializer indexSerializer
protected final AttributeHandler attributeHandler
public StandardRelationTypeMaker(StandardTitanTx tx, String name, IndexSerializer indexSerializer, AttributeHandler attributeHandler)
public String getName()
RelationTypeMakergetName in interface RelationTypeMakerprotected boolean hasSortKey()
protected Multiplicity getMultiplicity()
protected final TypeDefinitionMap makeDefinition()
public StandardRelationTypeMaker multiplicity(Multiplicity multiplicity)
public StandardRelationTypeMaker signature(PropertyKey... types)
RelationTypeMakerRelationTypes used in the signature must be either property out-unique keys or out-unique unidirected edge labels.
signature in interface RelationTypeMakertypes - PropertyKey composing the signature for the configured relation type. The order is irrelevant.public StandardRelationTypeMaker status(SchemaStatus status)
public StandardRelationTypeMaker sortKey(PropertyKey... keys)
com.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.keys - TitanTypes composing the sort key. The order is relevant.public StandardRelationTypeMaker sortOrder(Order order)
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.order - #sortKey(RelationType...)public StandardRelationTypeMaker name(String name)
public StandardRelationTypeMaker invisible()
Copyright © 2012–2015. All rights reserved.