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) |
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
|
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.
|
<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(Object 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, waitgetDuplicatedAddedRelationpropertygraphpublic VertexCentricQueryBuilder query()
JanusGraphVertexJanusGraphVertexQuery for this vertex.
Initializes and returns a new JanusGraphVertexQuery based on this vertex.
query in interface JanusGraphVertexquery in interface InternalVertexJanusGraphVertexQuerypublic Iterable<InternalRelation> getAddedRelations(com.google.common.base.Predicate<InternalRelation> query)
InternalVertexgetAddedRelations in interface InternalVertexpublic Iterable<InternalRelation> findAddedProperty(com.google.common.base.Predicate<InternalRelation> query)
findAddedProperty in interface InternalVertexpublic Iterable<InternalRelation> findPreviousRelation(long id)
findPreviousRelation 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)
JanusGraphVertex
Creates and returns a new JanusGraphEdge of the specified label with this vertex being the outgoing vertex
and the given vertex being the incoming vertex.
Automatically creates the edge label if it does not exist and automatic creation of types is enabled. Otherwise,
this method with throw an 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 Object id()
JanusGraphElementThe unique identifier may only be set when the transaction in which entity is created commits. Some entities are never assigned a unique identifier if they depend on a parent entity.
JanusGraph allocates blocks of identifiers and automatically assigns identifiers to elements
automatically be default. This behavior can be partially overridden by setting
GraphDatabaseConfiguration.ALLOW_SETTING_VERTEX_ID
id in interface org.apache.tinkerpop.gremlin.structure.Elementid in interface Idfiableid in interface JanusGraphElementJanusGraphElement.hasId()public boolean hasId()
JanusGraphElementNote that some entities may never be assigned an identifier and others will only be assigned an identifier at the end of a transaction.
hasId in interface JanusGraphElementpublic 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(Object 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–2024. All rights reserved.