public class EmptyVertex extends Object implements InternalVertex
| Constructor and Description |
|---|
EmptyVertex() |
| Modifier and Type | Method and Description |
|---|---|
JanusGraphEdge |
addEdge(String s,
org.apache.tinkerpop.gremlin.structure.Vertex vertex,
Object... keyValues)
Creates a new edge incident on this vertex.
|
boolean |
addRelation(InternalRelation e)
Add a new relation to the vertex
|
Iterator<org.apache.tinkerpop.gremlin.structure.Edge> |
edges(org.apache.tinkerpop.gremlin.structure.Direction direction,
String... edgeLabels) |
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 |
hasId()
Checks whether this entity has a unique identifier.
|
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
|
Object |
id()
Returns a unique identifier for this entity.
|
boolean |
isInvisible()
Whether this element is invisible and should only be returned to queries that explicitly ask for invisible elements.
|
boolean |
isLoaded()
Checks whether this entity has been loaded into the current transaction and not yet modified.
|
boolean |
isModified()
Checks whether this entity has been loaded into the current transaction and modified.
|
boolean |
isNew()
Checks whether this entity has been newly created in the current transaction.
|
boolean |
isRemoved()
Checks whether this entity has been deleted into the current transaction.
|
InternalVertex |
it()
Returns this element in the context of the current transaction.
|
String |
label()
Returns the name of the vertex label for this vertex.
|
EntryList |
loadRelations(SliceQuery query,
Retriever<SliceQuery,EntryList> lookup)
Returns all relations that match the given query.
|
long |
longId()
Unique identifier for this entity.
|
<V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> |
properties(String... propertyKeys) |
<V> JanusGraphVertexProperty<V> |
property(String key,
V value,
Object... keyValues) |
<V> JanusGraphVertexProperty<V> |
property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality,
String key,
V value,
Object... keyValues) |
VertexCentricQueryBuilder |
query()
Starts a new
JanusGraphVertexQuery for this vertex. |
void |
remove()
Deletes this entity and any incident edges or properties from the graph.
|
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.
|
void |
setId(long id) |
StandardJanusGraphTx |
tx()
Returns the transaction to which the element is currently bound or should be refreshed into
|
<O> O |
value(String key) |
<O> O |
valueOrNull(PropertyKey key)
Retrieves the value associated with the given key on this element and casts it to the specified type.
|
VertexLabel |
vertexLabel()
Returns the vertex label of this vertex.
|
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> |
vertices(org.apache.tinkerpop.gremlin.structure.Direction direction,
String... edgeLabels) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpropertygraphpublic VertexCentricQueryBuilder query()
JanusGraphVertexJanusGraphVertexQuery for this vertex.
Initializes and returns a new JanusGraphVertexQuery based on this vertex.query in interface JanusGraphVertexquery in interface InternalVertexJanusGraphVertexQuerypublic List<InternalRelation> getAddedRelations(com.google.common.base.Predicate<InternalRelation> query)
InternalVertexgetAddedRelations in interface InternalVertexpublic EntryList loadRelations(SliceQuery query, Retriever<SliceQuery,EntryList> lookup)
InternalVertexRetriever to retrieve the edges from backend storage.loadRelations in interface InternalVertexpublic boolean hasLoadedRelations(SliceQuery query)
InternalVertexhasLoadedRelations in interface InternalVertexpublic boolean hasRemovedRelations()
InternalVertexhasRemovedRelations in interface InternalVertexpublic boolean hasAddedRelations()
InternalVertexhasAddedRelations in interface InternalVertexpublic String label()
JanusGraphVertexlabel in interface org.apache.tinkerpop.gremlin.structure.Elementlabel in interface JanusGraphVertexpublic VertexLabel vertexLabel()
JanusGraphVertexvertexLabel in interface JanusGraphVertexpublic <O> O valueOrNull(PropertyKey key)
JanusGraphElementvalueOrNull in interface JanusGraphElementkey - keypublic <O> O value(String key)
value in interface org.apache.tinkerpop.gremlin.structure.Elementpublic <V> JanusGraphVertexProperty<V> property(String key, V value, Object... keyValues)
property in interface org.apache.tinkerpop.gremlin.structure.Vertexproperty in interface JanusGraphVertexpublic <V> JanusGraphVertexProperty<V> property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
property in interface org.apache.tinkerpop.gremlin.structure.Vertexproperty in interface JanusGraphVertexpublic Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
edges in interface org.apache.tinkerpop.gremlin.structure.Vertexpublic Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(org.apache.tinkerpop.gremlin.structure.Direction direction, String... edgeLabels)
vertices in interface org.apache.tinkerpop.gremlin.structure.Vertexpublic boolean addRelation(InternalRelation e)
InternalVertexaddRelation in interface InternalVertexpublic void removeRelation(InternalRelation e)
InternalVertexremoveRelation in interface InternalVertexe - JanusGraphRelation to be removedpublic JanusGraphEdge addEdge(String s, org.apache.tinkerpop.gremlin.structure.Vertex vertex, Object... keyValues)
JanusGraphVertexJanusGraphEdge of the specified label with this vertex being the outgoing vertex
and the given vertex being the incoming vertex.
IllegalArgumentException.addEdge in interface org.apache.tinkerpop.gremlin.structure.VertexaddEdge in interface JanusGraphVertexs - label of the edge to be createdvertex - incoming vertex of the edge to be createdpublic long longId()
JanusGraphElementJanusGraphElement.id() for the permanent id.longId in interface IdfiablelongId in interface JanusGraphElementpublic Object id()
JanusGraphElementGraphDatabaseConfiguration.ALLOW_SETTING_VERTEX_IDid in interface org.apache.tinkerpop.gremlin.structure.Elementid in interface JanusGraphElementJanusGraphElement.hasId()public boolean hasId()
JanusGraphElementhasId in interface JanusGraphElementJanusGraphElement.longId()public void remove()
JanusGraphElementremove in interface org.apache.tinkerpop.gremlin.structure.Elementremove in interface JanusGraphElementremove in interface Removablepublic <V> Iterator<org.apache.tinkerpop.gremlin.structure.VertexProperty<V>> properties(String... propertyKeys)
properties in interface org.apache.tinkerpop.gremlin.structure.Elementproperties in interface org.apache.tinkerpop.gremlin.structure.Vertexpublic void setId(long id)
setId in interface InternalElementpublic byte getLifeCycle()
getLifeCycle in interface InternalElementElementLifeCyclepublic boolean isInvisible()
InternalElementisInvisible in interface InternalElementpublic boolean isRemoved()
JanusGraphElementisRemoved in interface JanusGraphElementpublic boolean isLoaded()
JanusGraphElementisLoaded in interface JanusGraphElementpublic boolean isModified()
JanusGraphVertexisModified in interface JanusGraphVertexpublic boolean isNew()
JanusGraphElementisNew in interface JanusGraphElementpublic InternalVertex it()
InternalElementit in interface InternalElementit in interface InternalVertexpublic StandardJanusGraphTx tx()
InternalElementtx in interface InternalElementCopyright © 2012–2017. All rights reserved.