public class StandardVertex extends AbstractVertex
| Constructor and Description |
|---|
StandardVertex(StandardTitanTx 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, it, label, properties, property, property, query, toString, tx, valueOrNull, verifyAccess, vertexLabel, verticesclone, compare, compareTo, equals, hashCode, hasId, isInvisible, isLoaded, isNew, isRemoved, isTemporaryId, longId, setIdfinalize, getClass, notify, notifyAll, wait, wait, waitpropertygraph, isInvisible, setIdpublic StandardVertex(StandardTitanTx tx, long id, byte lifecycle)
public final void updateLifeCycle(ElementLifeCycle.Event event)
public void removeRelation(InternalRelation r)
InternalVertexr - TitanRelation to be removedpublic boolean addRelation(InternalRelation r)
InternalVertexpublic List<InternalRelation> getAddedRelations(com.google.common.base.Predicate<InternalRelation> query)
InternalVertexpublic EntryList loadRelations(SliceQuery query, Retriever<SliceQuery,EntryList> lookup)
InternalVertexRetriever to retrieve the edges from backend storage.public boolean hasLoadedRelations(SliceQuery query)
InternalVertexpublic boolean hasRemovedRelations()
InternalVertexpublic boolean hasAddedRelations()
InternalVertexpublic void remove()
TitanElementremove in interface TitanElementremove in interface Removableremove in interface org.apache.tinkerpop.gremlin.structure.Elementremove in class AbstractVertexpublic byte getLifeCycle()
ElementLifeCycleCopyright © 2012–2015. All rights reserved.