public class EmptyVertex extends Object implements InternalVertex
| Constructor and Description |
|---|
EmptyVertex() |
| Modifier and Type | Method and Description |
|---|---|
TitanEdge |
addEdge(EdgeLabel label,
TitanVertex vertex)
Creates a new edge incident on this vertex.
|
TitanEdge |
addEdge(String label,
TitanVertex vertex)
Creates a new edge incident on this vertex.
|
com.tinkerpop.blueprints.Edge |
addEdge(String s,
com.tinkerpop.blueprints.Vertex vertex) |
TitanProperty |
addProperty(PropertyKey key,
Object attribute)
Creates a new property for this vertex and given key with the specified value.
|
TitanProperty |
addProperty(String key,
Object attribute)
Creates a new property for this vertex and given key with the specified value.
|
boolean |
addRelation(InternalRelation e)
Add a new relation to the vertex
|
int |
compareTo(TitanElement titanElement) |
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
|
long |
getEdgeCount()
Returns the number of edges incident on this vertex.
|
Iterable<TitanEdge> |
getEdges()
Returns an iterable over all edges incident on this vertex.
|
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(com.tinkerpop.blueprints.Direction dir,
String... labels)
Returns an iterable over all edges of the specified edge label in the given direction incident on this vertex.
|
Object |
getId()
Returns a unique identifier for this entity.
|
long |
getID()
Unique identifier for this entity.
|
String |
getLabel()
Returns the name of the vertex label for this vertex.
|
byte |
getLifeCycle() |
Iterable<TitanProperty> |
getProperties()
Returns an iterable over all properties incident on this vertex.
|
Iterable<TitanProperty> |
getProperties(PropertyKey key)
Returns an iterable over all properties of the specified property key incident on this vertex.
|
Iterable<TitanProperty> |
getProperties(String key)
Returns an iterable over all properties of the specified property key incident on this vertex.
|
<O> O |
getProperty(PropertyKey key)
Retrieves the value associated with the given key on this vertex and casts it to the specified type.
|
<O> O |
getProperty(String key)
Retrieves the value associated with the given key on this vertex and casts it to the specified type.
|
long |
getPropertyCount()
Returns the number of properties incident on this vertex.
|
Set<String> |
getPropertyKeys() |
Iterable<TitanRelation> |
getRelations()
Returns an iterable over all relations incident on this vertex.
|
Iterable<TitanEdge> |
getTitanEdges(com.tinkerpop.blueprints.Direction dir,
EdgeLabel... labels)
Returns an iterable over all edges of the specified edge label in the given direction incident on this vertex.
|
VertexLabel |
getVertexLabel()
Returns the vertex label of this vertex.
|
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(com.tinkerpop.blueprints.Direction direction,
String... labels) |
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
|
boolean |
isConnected()
Checks whether this vertex has at least one incident edge.
|
boolean |
isHidden()
Whether this element is hidden and should only be returned to queries that explicitly ask for hidden 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.
|
EntryList |
loadRelations(SliceQuery query,
Retriever<SliceQuery,EntryList> lookup)
Returns all relations that match the given query.
|
VertexCentricQueryBuilder |
query()
Starts a new
TitanVertexQuery for this vertex. |
void |
remove()
Deletes this entity and any incident edges or properties from the graph.
|
<O> O |
removeProperty(RelationType type)
Removes the value associated with the given key for this vertex (if exists).
|
<O> O |
removeProperty(String key)
Removes the value associated with the given key for this vertex (if exists).
|
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) |
void |
setProperty(PropertyKey key,
Object value)
Sets the value for the given key on this element.
|
void |
setProperty(String key,
Object value)
Sets the value for the given key on this element.
|
StandardTitanTx |
tx()
Returns the transaction to which the element is currently bound or should be refreshed into
|
public VertexCentricQueryBuilder query()
TitanVertexTitanVertexQuery for this vertex.
Initializes and returns a new TitanVertexQuery based on this vertex.query in interface TitanVertexquery in interface InternalVertexquery in interface com.tinkerpop.blueprints.VertexTitanVertexQuerypublic 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 getLabel()
TitanVertexgetLabel in interface TitanVertexpublic VertexLabel getVertexLabel()
TitanVertexgetVertexLabel in interface TitanVertexpublic <O> O getProperty(PropertyKey key)
TitanElementgetProperty in interface TitanElementkey - keypublic <O> O getProperty(String key)
TitanElementgetProperty in interface TitanElementgetProperty in interface com.tinkerpop.blueprints.Elementkey - string identifying a keypublic Iterable<TitanProperty> getProperties()
TitanVertexgetProperties in interface TitanVertexIterable over all properties incident on this vertexpublic Iterable<TitanProperty> getProperties(PropertyKey key)
TitanVertexgetProperties in interface TitanVertexkey - PropertyKey of the returned propertiesIterable over all properties of the specified key incident on this vertexpublic Iterable<TitanProperty> getProperties(String key)
TitanVertexgetProperties in interface TitanVertexkey - key of the returned propertiesIterable over all properties of the specified key incident on this vertexpublic Set<String> getPropertyKeys()
getPropertyKeys in interface com.tinkerpop.blueprints.Elementpublic Iterable<TitanEdge> getEdges()
TitanVertexgetEdges in interface TitanVertexIterable over all edges incident on this vertexpublic Iterable<TitanEdge> getTitanEdges(com.tinkerpop.blueprints.Direction dir, EdgeLabel... labels)
TitanVertexgetTitanEdges in interface TitanVertexdir - Direction of the returned edges with respect to this vertexlabels - label of the returned edgesIterable over all edges with the given label and direction incident on this vertexpublic Iterable<com.tinkerpop.blueprints.Edge> getEdges(com.tinkerpop.blueprints.Direction dir, String... labels)
TitanVertexgetEdges in interface TitanVertexgetEdges in interface com.tinkerpop.blueprints.Vertexdir - Direction of the returned edges with respect to this vertexlabels - label of the returned edgesIterable over all edges with the given label and direction incident on this vertexpublic Iterable<TitanRelation> getRelations()
TitanVertexTitanEdge and TitanProperty.getRelations in interface TitanVertexIterable over all properties and edges incident on this vertex.public Iterable<com.tinkerpop.blueprints.Vertex> getVertices(com.tinkerpop.blueprints.Direction direction, String... labels)
getVertices in interface com.tinkerpop.blueprints.Vertexpublic long getPropertyCount()
TitanVertexgetPropertyCount in interface TitanVertexpublic long getEdgeCount()
TitanVertexgetEdgeCount in interface TitanVertexpublic boolean isConnected()
TitanVertexisConnected in interface TitanVertexpublic TitanProperty addProperty(PropertyKey key, Object attribute)
TitanVertexTitanProperty for the given key on this vertex with the specified
object being the value.addProperty in interface TitanVertexkey - key of the property to be createdattribute - value of the property to be createdpublic TitanProperty addProperty(String key, Object attribute)
TitanVertexTitanProperty for the given key on this vertex with the specified
object being the value.
IllegalArgumentException.addProperty in interface TitanVertexkey - key of the property to be createdattribute - value of the property to be createdpublic void setProperty(String key, Object value)
TitanElementCardinality.SINGLE, otherwise this method throws an exception.setProperty in interface TitanElementsetProperty in interface com.tinkerpop.blueprints.Elementkey - the string identifying the keyvalue - the object valuepublic void setProperty(PropertyKey key, Object value)
TitanElementCardinality.SINGLE, otherwise this method throws an exception.setProperty in interface TitanElementkey - the keyvalue - the object valuepublic boolean addRelation(InternalRelation e)
InternalVertexaddRelation in interface InternalVertexpublic void removeRelation(InternalRelation e)
InternalVertexremoveRelation in interface InternalVertexe - TitanRelation to be removedpublic <O> O removeProperty(String key)
TitanElementremoveProperty in interface TitanElementremoveProperty in interface com.tinkerpop.blueprints.Elementkey - the string identifying the keyTitanElement.removeProperty(RelationType)public <O> O removeProperty(RelationType type)
TitanElementremoveProperty in interface TitanElementtype - the keypublic TitanEdge addEdge(EdgeLabel label, TitanVertex vertex)
TitanVertexTitanEdge of the specified label with this vertex being the outgoing vertex
and the given vertex being the incoming vertex.addEdge in interface TitanVertexlabel - label of the edge to be createdvertex - incoming vertex of the edge to be createdpublic TitanEdge addEdge(String label, TitanVertex vertex)
TitanVertexTitanEdge of the specified label with this vertex being the outgoing vertex
and the given vertex being the incoming vertex.
IllegalArgumentException.addEdge in interface TitanVertexlabel - label of the edge to be createdvertex - incoming vertex of the edge to be createdpublic com.tinkerpop.blueprints.Edge addEdge(String s, com.tinkerpop.blueprints.Vertex vertex)
addEdge in interface com.tinkerpop.blueprints.Vertexpublic long getID()
TitanElementTitanElement.getId() for the permanent id.getID in interface IdfiablegetID in interface TitanElementpublic Object getId()
TitanElementgetId in interface TitanElementgetId in interface com.tinkerpop.blueprints.ElementTitanElement.hasId()public boolean hasId()
TitanElementhasId in interface TitanElementTitanElement.getID()public void remove()
TitanElementremove in interface TitanElementremove in interface Removableremove in interface com.tinkerpop.blueprints.Elementpublic void setID(long id)
setID in interface InternalElementpublic byte getLifeCycle()
getLifeCycle in interface InternalElementElementLifeCyclepublic boolean isHidden()
InternalElementisHidden 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 InternalElementpublic int compareTo(TitanElement titanElement)
compareTo in interface Comparable<TitanElement>Copyright © 2012–2014. All rights reserved.