public abstract class AbstractEdge extends AbstractTypedRelation implements JanusGraphEdge
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()
Checks whether this relation is a property.
|
String |
label() |
JanusGraphVertex |
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() |
JanusGraphVertex |
vertex(org.apache.tinkerpop.gremlin.structure.Direction dir)
Returns the vertex for the specified direction.
|
direction, getCompareId, getType, id, isIncidentOn, isInvisible, isLoop, it, longId, properties, property, tx, value, valueOrNull, verifyAccessclone, compare, compareTo, equals, hashCode, hasId, isLoaded, isNew, isRemoved, isTemporaryId, setIdfinalize, getClass, notify, notifyAll, wait, wait, waitedgeLabel, inVertex, outVertex, verticesdirection, getType, isIncidentOn, isLoop, longId, valuegraph, hasId, id, isLoaded, isNew, isRemoved, property, remove, valueOrNullkeys, properties, property, valuesbothVertices, propertiesgetPropertyKeysDirect, getValueDirect, removePropertyDirect, setPropertyDirectgetLifeCycle, graph, setIdpublic 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 JanusGraphVertex vertex(org.apache.tinkerpop.gremlin.structure.Direction dir)
JanusGraphEdgevertex in interface JanusGraphEdgedir - Direction of IN or OUTpublic JanusGraphVertex otherVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
JanusGraphEdgeotherVertex in interface JanusGraphEdgevertex - vertex on which this edge is incidentpublic boolean isProperty()
JanusGraphRelationisProperty in interface JanusGraphRelationJanusGraphVertexPropertypublic boolean isEdge()
JanusGraphRelationisEdge in interface JanusGraphRelationJanusGraphEdgeCopyright © 2012–2023. All rights reserved.