public class StandardEdgeLabelMaker extends StandardRelationTypeMaker implements EdgeLabelMaker
attributeHandler, indexSerializer, tx
Constructor and Description |
---|
StandardEdgeLabelMaker(StandardTitanTx tx,
String name,
IndexSerializer indexSerializer,
AttributeHandler attributeHandler) |
Modifier and Type | Method and Description |
---|---|
StandardEdgeLabelMaker |
directed()
Configures the label to be directed.
|
StandardEdgeLabelMaker |
invisible() |
EdgeLabel |
make()
Defines the
EdgeLabel specified by this EdgeLabelMaker and returns the resulting label |
StandardEdgeLabelMaker |
multiplicity(Multiplicity multiplicity)
Sets the multiplicity of this label.
|
StandardEdgeLabelMaker |
signature(PropertyKey... types)
Configures the signature of this relation type.
|
StandardEdgeLabelMaker |
sortKey(PropertyKey... types)
Configures the composite sort key for this label.
|
StandardEdgeLabelMaker |
sortOrder(Order order)
Defines in which order to sort the relations for efficient retrieval, i.e.
|
StandardEdgeLabelMaker |
unidirected()
Configures the label to be unidirected.
|
StandardEdgeLabelMaker |
unidirected(org.apache.tinkerpop.gremlin.structure.Direction dir) |
getMultiplicity, getName, hasSortKey, makeDefinition, name, status
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public StandardEdgeLabelMaker(StandardTitanTx tx, String name, IndexSerializer indexSerializer, AttributeHandler attributeHandler)
public StandardEdgeLabelMaker directed()
EdgeLabelMaker
directed
in interface EdgeLabelMaker
EdgeLabel.isDirected()
public StandardEdgeLabelMaker unidirected()
EdgeLabelMaker
unidirected
in interface EdgeLabelMaker
EdgeLabel.isUnidirected()
public StandardEdgeLabelMaker unidirected(org.apache.tinkerpop.gremlin.structure.Direction dir)
public StandardEdgeLabelMaker multiplicity(Multiplicity multiplicity)
EdgeLabelMaker
Multiplicity.MULTI
.multiplicity
in interface EdgeLabelMaker
multiplicity
in class StandardRelationTypeMaker
Multiplicity
public StandardEdgeLabelMaker 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 EdgeLabelMaker
signature
in interface RelationTypeMaker
signature
in class StandardRelationTypeMaker
types
- PropertyKey composing the signature for the configured relation type. The order is irrelevant.public StandardEdgeLabelMaker 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 StandardEdgeLabelMaker 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 StandardEdgeLabelMaker invisible()
invisible
in class StandardRelationTypeMaker
public EdgeLabel make()
EdgeLabelMaker
EdgeLabel
specified by this EdgeLabelMaker and returns the resulting labelmake
in interface EdgeLabelMaker
make
in interface RelationTypeMaker
EdgeLabel
Copyright © 2012–2015. All rights reserved.