public class StandardVertex extends AbstractVertex
| Constructor and Description |
|---|
StandardVertex(StandardJanusGraphTx tx,
Object id,
byte lifecycle) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRelation(InternalRelation r)
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
|
Iterable<InternalRelation> |
getDuplicatedAddedRelation(PropertyKey key,
Object value)
Returns duplicated properties for the given key and value.
|
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.
|
<V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> |
properties(String... keys) |
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) |
VertexLabel |
vertexLabel()
Returns the vertex label of this vertex.
|
addEdge, edges, getCompareId, getVertexLabelInternal, isModified, isTxOpen, it, label, property, property, query, toString, tx, valueOrNull, verifyAccess, verticesclone, compare, compareTo, equals, hashCode, hasId, id, isInvisible, isLoaded, isNew, isRemoved, isTemporaryId, setIdfinalize, getClass, notify, notifyAll, wait, wait, waitpropertygraph, isInvisible, setIdpublic StandardVertex(StandardJanusGraphTx tx, Object id, byte lifecycle)
public final void updateLifeCycle(ElementLifeCycle.Event event)
public void removeRelation(InternalRelation r)
InternalVertexr - JanusGraphRelation to be removedpublic boolean addRelation(InternalRelation r)
InternalVertexpublic Iterable<InternalRelation> getDuplicatedAddedRelation(PropertyKey key, Object value)
Cardinality is Single, it only matches by key name
If Cardinality is Set, it matches by key name and key valuepublic Iterable<InternalRelation> getAddedRelations(com.google.common.base.Predicate<InternalRelation> query)
InternalVertexpublic Iterable<InternalRelation> findPreviousRelation(long id)
public Iterable<InternalRelation> findAddedProperty(com.google.common.base.Predicate<InternalRelation> query)
public EntryList loadRelations(SliceQuery query, Retriever<SliceQuery,EntryList> lookup)
InternalVertexRetriever to retrieve the edges from backend storage.public VertexLabel vertexLabel()
JanusGraphVertexvertexLabel in interface JanusGraphVertexvertexLabel in class AbstractVertexpublic <V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties(String... keys)
properties in interface org.apache.tinkerpop.gremlin.structure.Elementproperties in interface org.apache.tinkerpop.gremlin.structure.Vertexproperties in class AbstractVertexpublic boolean hasLoadedRelations(SliceQuery query)
InternalVertexpublic boolean hasRemovedRelations()
InternalVertexpublic boolean hasAddedRelations()
InternalVertexpublic void remove()
JanusGraphElementremove in interface org.apache.tinkerpop.gremlin.structure.Elementremove in interface JanusGraphElementremove in interface Removableremove in class AbstractVertexpublic byte getLifeCycle()
ElementLifeCycleCopyright © 2012–2024. All rights reserved.