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.
|
addEdge, addEdge, addEdge, addProperty, addProperty, getCompareId, getEdgeCount, getEdges, getEdges, getId, getLabel, getProperties, getProperties, getProperties, getProperty, getProperty, getPropertyCount, getPropertyKeys, getRelations, getTitanEdges, getVertexLabel, getVertexLabelInternal, getVertices, isConnected, isModified, it, query, removeProperty, removeProperty, setProperty, setProperty, toString, txclone, compareTo, equals, getID, hashCode, hasId, isHidden, isImplicitId, isLoaded, isNew, isRemoved, isTemporaryId, setIDfinalize, getClass, notify, notifyAll, wait, wait, waitisHidden, setIDgetID, hasId, isLoaded, isNew, isRemovedcompareTopublic StandardVertex(StandardTitanTx tx, long id, byte lifecycle)
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 com.tinkerpop.blueprints.Elementremove in class AbstractVertexpublic byte getLifeCycle()
ElementLifeCycleCopyright © 2012–2014. All rights reserved.