public interface InternalVertex extends JanusGraphVertex, InternalElement
Modifier and Type | Method and Description |
---|---|
boolean |
addRelation(InternalRelation e)
Add a new relation to the vertex
|
Iterable<InternalRelation> |
findAddedProperty(com.google.common.base.Predicate<InternalRelation> query) |
Iterable<InternalRelation> |
findPreviousRelation(long id) |
Iterable<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
|
default Iterable<InternalRelation> |
getDuplicatedAddedRelation(PropertyKey key,
Object value) |
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
JanusGraphVertexQuery for this vertex. |
void |
remove(Iterable<JanusGraphRelation> loadedRelations)
Remove a vertex with pre-loaded relations.
|
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, vertexLabel
edges, properties, property, vertices
getCompareId, getLifeCycle, graph, isInvisible, setId, tx
hasId, id, isLoaded, isNew, isRemoved, remove, valueOrNull
InternalVertex it()
InternalElement
it
in interface InternalElement
void removeRelation(InternalRelation e)
e
- JanusGraphRelation to be removedvoid remove(Iterable<JanusGraphRelation> loadedRelations)
loadedRelations
- pre-loaded relations.boolean addRelation(InternalRelation e)
e
- Iterable<InternalRelation> getAddedRelations(com.google.common.base.Predicate<InternalRelation> query)
query
- Iterable<InternalRelation> findPreviousRelation(long id)
Iterable<InternalRelation> findAddedProperty(com.google.common.base.Predicate<InternalRelation> query)
default Iterable<InternalRelation> getDuplicatedAddedRelation(PropertyKey key, Object value)
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()
JanusGraphVertex
JanusGraphVertexQuery
for this vertex.
Initializes and returns a new JanusGraphVertexQuery
based on this vertex.
query
in interface JanusGraphVertex
JanusGraphVertexQuery
Copyright © 2012–2024. All rights reserved.