public class StandardVertex extends AbstractVertex
Constructor and Description |
---|
StandardVertex(StandardJanusGraphTx tx,
long id,
byte lifecycle) |
Modifier and Type | Method and Description |
---|---|
boolean |
addRelation(InternalRelation r)
Add a new relation to the vertex
|
List<InternalRelation> |
getAddedRelations(com.google.common.base.Predicate<InternalRelation> query)
Returns an iterable over all newly added relations incident on this vertex that match the given predicate
|
byte |
getLifeCycle() |
boolean |
hasAddedRelations()
Whether this vertex has added relations
|
boolean |
hasLoadedRelations(SliceQuery query)
Returns true if the results for the given query have already been loaded for this vertex and are locally cached.
|
boolean |
hasRemovedRelations()
Whether this vertex has removed relations
|
EntryList |
loadRelations(SliceQuery query,
Retriever<SliceQuery,EntryList> lookup)
Returns all relations that match the given query.
|
void |
remove()
Deletes this entity and any incident edges or properties from the graph.
|
void |
removeRelation(InternalRelation r)
Deleted relation e from the adjacency list of this vertex and updates the state of the vertex to reflect
the modification.
|
void |
updateLifeCycle(ElementLifeCycle.Event event) |
addEdge, edges, getCompareId, getVertexLabelInternal, id, isModified, isTxOpen, it, label, properties, property, property, query, toString, tx, valueOrNull, verifyAccess, vertexLabel, vertices
clone, compare, compareTo, equals, hashCode, hasId, isInvisible, isLoaded, isNew, isRemoved, isTemporaryId, longId, setId
finalize, getClass, notify, notifyAll, wait, wait, wait
property
graph, isInvisible, setId
public StandardVertex(StandardJanusGraphTx tx, long id, byte lifecycle)
public final void updateLifeCycle(ElementLifeCycle.Event event)
public void removeRelation(InternalRelation r)
InternalVertex
r
- JanusGraphRelation to be removedpublic boolean addRelation(InternalRelation r)
InternalVertex
public List<InternalRelation> getAddedRelations(com.google.common.base.Predicate<InternalRelation> query)
InternalVertex
public EntryList loadRelations(SliceQuery query, Retriever<SliceQuery,EntryList> lookup)
InternalVertex
Retriever
to retrieve the edges from backend storage.public boolean hasLoadedRelations(SliceQuery query)
InternalVertex
public boolean hasRemovedRelations()
InternalVertex
public boolean hasAddedRelations()
InternalVertex
public void remove()
JanusGraphElement
remove
in interface org.apache.tinkerpop.gremlin.structure.Element
remove
in interface JanusGraphElement
remove
in interface Removable
remove
in class AbstractVertex
public byte getLifeCycle()
ElementLifeCycle
Copyright © 2012–2020. All rights reserved.