public interface TitanType extends TitanVertex
TitanRelation
. TitanType can be configured through TypeMaker
to
provide data verification, better storage efficiency, and higher retrieval performance.
TitanRelation
has a unique type which defines many important characteristics of that relation.
isUnique(com.tinkerpop.blueprints.Direction)
}.
If a type is unique, that means there can be at most one relation (i.e. property or edge) of that type on any given element in that direction.getGroup()
TypeMaker
which is accessed in the context of a TitanTransaction
via TitanTransaction.makeType()
or through the graph TitanGraph.makeType()
.
Note, types will only be visible once the transaction in which they were created has been committed.
TitanRelation
,
TypeMaker
,
Titan Type WikiModifier and Type | Method and Description |
---|---|
TypeGroup |
getGroup()
Returns the type group of this type.
|
String |
getName()
Returns the unique name of this type.
|
boolean |
isEdgeLabel()
Checks if this type is an edge label
|
boolean |
isModifiable()
Checks whether relations of this type are modifiable after creation.
|
boolean |
isPropertyKey()
Checks if this type is a property key
|
boolean |
isUnique(com.tinkerpop.blueprints.Direction direction)
Checks whether this unique in the given direction.
|
addEdge, addEdge, addProperty, addProperty, getEdgeCount, getEdges, getEdges, getProperties, getProperties, getProperties, getPropertyCount, getRelations, getTitanEdges, isConnected, isModified, query
getId, getID, getProperty, getProperty, hasId, isLoaded, isNew, isRemoved, remove, removeProperty, removeProperty, setProperty, setProperty
compareTo
String getName()
boolean isUnique(com.tinkerpop.blueprints.Direction direction)
boolean isModifiable()
TypeGroup getGroup()
TypeGroup
boolean isPropertyKey()
TitanKey
boolean isEdgeLabel()
TitanLabel
Copyright © 2012-2013. All Rights Reserved.