public interface TitanVertex extends TitanElement, com.tinkerpop.blueprints.Vertex
TitanGraph.
It extends the functionality provided by Blueprint's Vertex by helper and convenience methods.
Vertices have incident edges and properties. Edge connect the vertex to other vertices. Properties attach key-value
pairs to this vertex to define it.
Like TitanRelation a vertex has a vertex label.| 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.
|
TitanProperty |
addProperty(PropertyKey key,
Object value)
Creates a new property for this vertex and given key with the specified value.
|
TitanProperty |
addProperty(String key,
Object value)
Creates a new property for this vertex and given key with the specified value.
|
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 d,
String... labels)
Returns an iterable over all edges of the specified edge label in the given direction incident on this vertex.
|
String |
getLabel()
Returns the name of the vertex label for this vertex.
|
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.
|
long |
getPropertyCount()
Returns the number of properties incident on this vertex.
|
Iterable<TitanRelation> |
getRelations()
Returns an iterable over all relations incident on this vertex.
|
Iterable<TitanEdge> |
getTitanEdges(com.tinkerpop.blueprints.Direction d,
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.
|
boolean |
isConnected()
Checks whether this vertex has at least one incident edge.
|
boolean |
isModified()
Checks whether this entity has been loaded into the current transaction and modified.
|
TitanVertexQuery<? extends TitanVertexQuery> |
query()
Starts a new
TitanVertexQuery for this vertex. |
getId, getID, getProperty, getProperty, hasId, isLoaded, isNew, isRemoved, remove, removeProperty, removeProperty, setProperty, setPropertycompareToTitanEdge addEdge(EdgeLabel label, TitanVertex vertex)
TitanEdge of the specified label with this vertex being the outgoing vertex
and the given vertex being the incoming vertex.label - label of the edge to be createdvertex - incoming vertex of the edge to be createdTitanEdge addEdge(String label, TitanVertex vertex)
TitanEdge of the specified label with this vertex being the outgoing vertex
and the given vertex being the incoming vertex.
IllegalArgumentException.label - label of the edge to be createdvertex - incoming vertex of the edge to be createdTitanProperty addProperty(PropertyKey key, Object value)
TitanProperty for the given key on this vertex with the specified
object being the value.key - key of the property to be createdvalue - value of the property to be createdIllegalArgumentException - if the value does not match the data type of the property key.TitanProperty addProperty(String key, Object value)
TitanProperty for the given key on this vertex with the specified
object being the value.
IllegalArgumentException.key - key of the property to be createdvalue - value of the property to be createdIllegalArgumentException - if the value does not match the data type of the property key.String getLabel()
VertexLabel getVertexLabel()
TitanVertexQuery<? extends TitanVertexQuery> query()
TitanVertexQuery for this vertex.
Initializes and returns a new TitanVertexQuery based on this vertex.query in interface com.tinkerpop.blueprints.VertexTitanVertexQueryIterable<TitanProperty> getProperties()
Iterable over all properties incident on this vertexIterable<TitanProperty> getProperties(PropertyKey key)
key - PropertyKey of the returned propertiesIterable over all properties of the specified key incident on this vertexIterable<TitanProperty> getProperties(String key)
key - key of the returned propertiesIterable over all properties of the specified key incident on this vertexIterable<TitanEdge> getTitanEdges(com.tinkerpop.blueprints.Direction d, EdgeLabel... labels)
labels - label of the returned edgesd - Direction of the returned edges with respect to this vertexIterable over all edges with the given label and direction incident on this vertexIterable<com.tinkerpop.blueprints.Edge> getEdges(com.tinkerpop.blueprints.Direction d, String... labels)
getEdges in interface com.tinkerpop.blueprints.Vertexlabels - label of the returned edgesd - Direction of the returned edges with respect to this vertexIterable over all edges with the given label and direction incident on this vertexIterable<TitanEdge> getEdges()
Iterable over all edges incident on this vertexIterable<TitanRelation> getRelations()
TitanEdge and TitanProperty.Iterable over all properties and edges incident on this vertex.long getEdgeCount()
long getPropertyCount()
boolean isConnected()
boolean isModified()
Copyright © 2012–2014. All rights reserved.