public interface TitanRelation extends TitanElement
TitanElement which means it is an entity in its own right. This means, a TitanRelation
can have properties and unidirectional edges connecting it to other vertices.
TitanProperty or a TitanEdge.
A TitanRelation has a type which is either a label or key depending on the implementation.
TitanEdge,
TitanProperty| Type | Property and Description |
|---|---|
boolean |
is
Checks whether this relation is a property.
|
| Modifier and Type | Method and Description |
|---|---|
com.tinkerpop.blueprints.Direction |
getDirection(TitanVertex vertex)
Returns the direction of this relation from the perspective of the specified vertex.
|
TitanVertex |
getProperty(EdgeLabel label)
Returns the vertex associated to this relation by a unidirected edge of the given label or NULL if such does not exist.
|
RelationType |
getType()
Returns the type of this relation.
|
boolean |
isEdge()
Checks whether this relation is an edge.
|
boolean |
isIncidentOn(TitanVertex vertex)
Checks whether this relation is incident on the specified vertex.
|
boolean |
isLoop()
Checks whether this relation is a loop.
|
boolean |
isProperty()
Checks whether this relation is a property.
|
void |
setProperty(EdgeLabel label,
TitanVertex vertex)
Establishes a unidirectional edge between this relation and the given vertex for the specified label.
|
getId, getID, getProperty, getProperty, hasId, isLoaded, isNew, isRemoved, remove, removeProperty, removeProperty, setProperty, setPropertycompareToTitanPropertyvoid setProperty(EdgeLabel label, TitanVertex vertex)
EdgeLabel.isUnidirected().label - vertex - TitanVertex getProperty(EdgeLabel label)
label - RelationType getType()
EdgeLabel if this relation is an edge or a key (PropertyKey) if this
relation is a property.com.tinkerpop.blueprints.Direction getDirection(TitanVertex vertex)
vertex - vertex on which the relation is incidentInvalidElementException - if this relation is not incident on the vertexboolean isIncidentOn(TitanVertex vertex)
vertex - vertex to check incidence forboolean isLoop()
boolean isProperty()
TitanPropertyboolean isEdge()
TitanEdgeCopyright © 2012–2014. All rights reserved.