public class EmptyVertex extends Object implements InternalVertex
| Constructor and Description |
|---|
EmptyVertex() |
| Modifier and Type | Method and Description |
|---|---|
TitanEdge |
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> TitanVertexProperty<V> |
property(String key,
V value,
Object... keyValues) |
<V> TitanVertexProperty<V> |
property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality,
String key,
V value,
Object... keyValues) |
VertexCentricQueryBuilder |
query()
Starts a new
TitanVertexQuery 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) |
StandardTitanTx |
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()
TitanVertexTitanVertexQuery for this vertex.
Initializes and returns a new TitanVertexQuery based on this vertex.query in interface TitanVertexquery in interface InternalVertexTitanVertexQuerypublic 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()
TitanVertexlabel in interface TitanVertexlabel in interface org.apache.tinkerpop.gremlin.structure.Elementpublic VertexLabel vertexLabel()
TitanVertexvertexLabel in interface TitanVertexpublic <O> O valueOrNull(PropertyKey key)
TitanElementvalueOrNull in interface TitanElementkey - keypublic <O> O value(String key)
value in interface org.apache.tinkerpop.gremlin.structure.Elementpublic <V> TitanVertexProperty<V> property(String key, V value, Object... keyValues)
property in interface TitanVertexproperty in interface org.apache.tinkerpop.gremlin.structure.Vertexpublic <V> TitanVertexProperty<V> property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
property in interface TitanVertexproperty in interface org.apache.tinkerpop.gremlin.structure.Vertexpublic 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 - TitanRelation to be removedpublic TitanEdge addEdge(String s, org.apache.tinkerpop.gremlin.structure.Vertex vertex, Object... keyValues)
TitanVertexTitanEdge of the specified label with this vertex being the outgoing vertex
and the given vertex being the incoming vertex.
IllegalArgumentException.addEdge in interface TitanVertexaddEdge in interface org.apache.tinkerpop.gremlin.structure.Vertexs - label of the edge to be createdvertex - incoming vertex of the edge to be createdpublic long longId()
TitanElementTitanElement.id() for the permanent id.longId in interface IdfiablelongId in interface TitanElementpublic Object id()
TitanElementGraphDatabaseConfiguration.ALLOW_SETTING_VERTEX_IDid in interface TitanElementid in interface org.apache.tinkerpop.gremlin.structure.ElementTitanElement.hasId()public boolean hasId()
TitanElementhasId in interface TitanElementTitanElement.longId()public void remove()
TitanElementremove in interface TitanElementremove in interface Removableremove in interface org.apache.tinkerpop.gremlin.structure.Elementpublic <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()
TitanElementisRemoved in interface TitanElementpublic boolean isLoaded()
TitanElementisLoaded in interface TitanElementpublic boolean isModified()
TitanVertexisModified in interface TitanVertexpublic boolean isNew()
TitanElementisNew in interface TitanElementpublic InternalVertex it()
InternalElementit in interface InternalElementit in interface InternalVertexpublic StandardTitanTx tx()
InternalElementtx in interface InternalElementCopyright © 2012–2015. All rights reserved.