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, vertices
clone, compare, compareTo, equals, hashCode, hasId, id, isInvisible, isLoaded, isNew, isRemoved, isTemporaryId, setId
finalize, getClass, notify, notifyAll, wait, wait, wait
property
graph, isInvisible, setId
public StandardVertex(StandardJanusGraphTx tx, Object id, byte lifecycle)
public final void updateLifeCycle(ElementLifeCycle.Event event)
public void removeRelation(InternalRelation r)
InternalVertex
r
- JanusGraphRelation to be removedpublic boolean addRelation(InternalRelation r)
InternalVertex
public 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)
InternalVertex
public 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)
InternalVertex
Retriever
to retrieve the edges from backend storage.public VertexLabel vertexLabel()
JanusGraphVertex
vertexLabel
in interface JanusGraphVertex
vertexLabel
in class AbstractVertex
public <V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties(String... keys)
properties
in interface org.apache.tinkerpop.gremlin.structure.Element
properties
in interface org.apache.tinkerpop.gremlin.structure.Vertex
properties
in class AbstractVertex
public boolean hasLoadedRelations(SliceQuery query)
InternalVertex
public boolean hasRemovedRelations()
InternalVertex
public boolean hasAddedRelations()
InternalVertex
public void remove()
JanusGraphElement
remove
in interface org.apache.tinkerpop.gremlin.structure.Element
remove
in interface JanusGraphElement
remove
in interface Removable
remove
in class AbstractVertex
public byte getLifeCycle()
ElementLifeCycle
Copyright © 2012–2024. All rights reserved.