public abstract class AbstractEdge extends AbstractTypedRelation implements TitanEdge
| Type | Property and Description |
|---|---|
boolean |
is
Gets the value of the property property.
|
type| Constructor and Description |
|---|
AbstractEdge(long id,
EdgeLabel label,
InternalVertex start,
InternalVertex end) |
| Modifier and Type | Method and Description |
|---|---|
int |
getArity()
Number of vertices on this relation.
|
int |
getLen()
Number of vertices on this relation that are aware of its existence.
|
InternalVertex |
getVertex(int pos)
Returns the vertex at the given position (0=OUT, 1=IN) of this relation
|
boolean |
isEdge()
Checks whether this relation is an edge.
|
boolean |
isProperty()
Gets the value of the property property.
|
String |
label() |
TitanVertex |
otherVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
Returns the vertex at the opposite end of the edge.
|
void |
setVertexAt(int pos,
InternalVertex vertex) |
String |
toString() |
TitanVertex |
vertex(org.apache.tinkerpop.gremlin.structure.Direction dir)
Returns the vertex for the specified direction.
|
direction, getType, id, isIncidentOn, isInvisible, isLoop, it, properties, property, tx, value, valueOrNull, verifyAccessclone, compare, compareTo, equals, getCompareId, hashCode, hasId, isLoaded, isNew, isRemoved, isTemporaryId, longId, setIdfinalize, getClass, notify, notifyAll, wait, wait, waitedgeLabel, inVertex, outVertex, verticesdirection, getType, isIncidentOn, isLoop, valuegraph, hasId, id, isLoaded, isNew, isRemoved, longId, property, remove, valueOrNullkeys, properties, property, valuesbothVertices, propertiesgetPropertyKeysDirect, getValueDirect, removePropertyDirect, setPropertyDirectgetLifeCycle, graph, setIdpublic boolean isProperty
isProperty in interface TitanRelationTitanVertexPropertypublic AbstractEdge(long id,
EdgeLabel label,
InternalVertex start,
InternalVertex end)
public String label()
label in interface org.apache.tinkerpop.gremlin.structure.Elementpublic void setVertexAt(int pos,
InternalVertex vertex)
public InternalVertex getVertex(int pos)
InternalRelationgetVertex in interface InternalRelationpublic int getArity()
InternalRelationgetArity in interface InternalRelationpublic int getLen()
InternalRelationInternalRelation.getArity()getLen in interface InternalRelationpublic TitanVertex vertex(org.apache.tinkerpop.gremlin.structure.Direction dir)
TitanEdgepublic TitanVertex otherVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
TitanEdgeotherVertex in interface TitanEdgevertex - vertex on which this edge is incidentpublic boolean isProperty()
isProperty in interface TitanRelationTitanVertexPropertypublic boolean isEdge()
TitanRelationisEdge in interface TitanRelationTitanEdgeCopyright © 2012–2015. All rights reserved.