public abstract class StandardRelationTypeMaker extends Object implements RelationTypeMaker
Modifier and Type | Field and Description |
---|---|
protected AttributeHandler |
attributeHandler |
protected IndexSerializer |
indexSerializer |
protected StandardJanusGraphTx |
tx |
Constructor and Description |
---|
StandardRelationTypeMaker(StandardJanusGraphTx 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, wait
make
protected final StandardJanusGraphTx tx
protected final IndexSerializer indexSerializer
protected final AttributeHandler attributeHandler
public StandardRelationTypeMaker(StandardJanusGraphTx tx, String name, IndexSerializer indexSerializer, AttributeHandler attributeHandler)
public String getName()
RelationTypeMaker
getName
in interface RelationTypeMaker
protected boolean hasSortKey()
protected Multiplicity getMultiplicity()
protected final TypeDefinitionMap makeDefinition()
public StandardRelationTypeMaker multiplicity(Multiplicity multiplicity)
public StandardRelationTypeMaker 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 RelationTypeMaker
types
- PropertyKey composing the signature for the configured relation type. The order is irrelevant.public StandardRelationTypeMaker status(SchemaStatus status)
public StandardRelationTypeMaker sortKey(PropertyKey... keys)
org.janusgraph.core.JanusGraphVertexQuery#interval(org.janusgraph.core.PropertyKey, Comparable, Comparable)
.
RelationType
s used in the sort key must be either property out-unique keys or out-unique unidirected edge lables.keys
- JanusGraphTypes 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–2017. All rights reserved.