public interface InternalVertex extends TitanVertex, InternalElement
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRelation(InternalRelation e)
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
|
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
|
InternalVertex |
it()
Returns this element in the context of the current transaction.
|
EntryList |
loadRelations(SliceQuery query,
Retriever<SliceQuery,EntryList> lookup)
Returns all relations that match the given query.
|
VertexCentricQueryBuilder |
query()
Starts a new
TitanVertexQuery for this vertex. |
void |
removeRelation(InternalRelation e)
Deleted relation e from the adjacency list of this vertex and updates the state of the vertex to reflect
the modification.
|
addEdge, isModified, label, property, property, property, vertexLabeledges, properties, property, verticesgetLifeCycle, graph, isInvisible, setId, txhasId, id, isLoaded, isNew, isRemoved, longId, remove, valueOrNullInternalVertex it()
InternalElementit in interface InternalElementvoid removeRelation(InternalRelation e)
e - TitanRelation to be removedboolean addRelation(InternalRelation e)
e - List<InternalRelation> getAddedRelations(com.google.common.base.Predicate<InternalRelation> query)
query - EntryList loadRelations(SliceQuery query, Retriever<SliceQuery,EntryList> lookup)
Retriever to retrieve the edges from backend storage.query - lookup - boolean hasLoadedRelations(SliceQuery query)
query - boolean hasRemovedRelations()
boolean hasAddedRelations()
VertexCentricQueryBuilder query()
TitanVertexTitanVertexQuery for this vertex.
Initializes and returns a new TitanVertexQuery based on this vertex.query in interface TitanVertexTitanVertexQueryCopyright © 2012–2015. All rights reserved.