public interface TitanVertex extends TitanElement, com.tinkerpop.blueprints.Vertex
TitanGraph
.
It extends the functionality provided by Blueprint's Vertex
by helper and convenience methods.Modifier and Type | Method and Description |
---|---|
TitanEdge |
addEdge(String label,
TitanVertex vertex)
Creates a new edge incident on this vertex.
|
TitanEdge |
addEdge(TitanLabel label,
TitanVertex vertex)
Creates a new edge incident on this vertex.
|
TitanProperty |
addProperty(String key,
Object attribute)
Creates a new property for this vertex and given key with the specified attribute.
|
TitanProperty |
addProperty(TitanKey key,
Object attribute)
Creates a new property for this vertex and given key with the specified attribute.
|
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.
|
Iterable<TitanProperty> |
getProperties()
Returns an iterable over all properties incident on this vertex.
|
Iterable<TitanProperty> |
getProperties(String key)
Returns an iterable over all properties of the specified property key incident on this vertex.
|
Iterable<TitanProperty> |
getProperties(TitanKey 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,
TitanLabel... labels)
Returns an iterable over all edges of the specified edge label in the given direction incident on 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 |
query()
Starts a new TitanQuery for this vertex.
|
getId, getID, getProperty, getProperty, hasId, isLoaded, isNew, isRemoved, remove, removeProperty, removeProperty, setProperty, setProperty
compareTo
TitanEdge addEdge(TitanLabel 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(TitanKey key, Object attribute)
TitanProperty
for the given key on this vertex with the specified
object being the attribute.key
- key of the property to be createdattribute
- attribute of the property to be createdIllegalArgumentException
- if the attribute does not match the data type of the property key.TitanProperty addProperty(String key, Object attribute)
TitanProperty
for the given key on this vertex with the specified
object being the attribute.
IllegalArgumentException
.key
- key of the property to be createdattribute
- attribute of the property to be createdIllegalArgumentException
- if the attribute does not match the data type of the property key.TitanVertexQuery query()
TitanVertexQuery
centered on this vertex.query
in interface com.tinkerpop.blueprints.Vertex
TitanVertexQuery
Iterable<TitanProperty> getProperties()
Iterable
over all properties incident on this vertexIterable<TitanProperty> getProperties(TitanKey key)
Iterable<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, TitanLabel... 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.Vertex
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<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-2013. All Rights Reserved.