public interface TitanVertex extends TitanElement, org.apache.tinkerpop.gremlin.structure.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(String label,
org.apache.tinkerpop.gremlin.structure.Vertex vertex,
Object... keyValues)
Creates a new edge incident on this vertex.
|
boolean |
isModified()
Checks whether this entity has been loaded into the current transaction and modified.
|
default String |
label()
Returns the name of the vertex label for this vertex.
|
default <V> TitanVertexProperty<V> |
property(String key,
V value)
Creates a new property for this vertex and given key with the specified value.
|
<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) |
TitanVertexQuery<? extends TitanVertexQuery> |
query()
Starts a new
TitanVertexQuery for this vertex. |
VertexLabel |
vertexLabel()
Returns the vertex label of this vertex.
|
graph, hasId, id, isLoaded, isNew, isRemoved, longId, remove, valueOrNullTitanEdge addEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex vertex, Object... keyValues)
TitanEdge of the specified label with this vertex being the outgoing vertex
and the given vertex being the incoming vertex.
IllegalArgumentException.addEdge in interface org.apache.tinkerpop.gremlin.structure.Vertexlabel - label of the edge to be createdvertex - incoming vertex of the edge to be createddefault <V> TitanVertexProperty<V> property(String key, V value)
TitanVertexProperty for the given key on this vertex with the specified
object being the value.
IllegalArgumentException.property in interface org.apache.tinkerpop.gremlin.structure.Elementproperty in interface TitanElementproperty in interface org.apache.tinkerpop.gremlin.structure.Vertexkey - 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.<V> TitanVertexProperty<V> property(String key, V value, Object... keyValues)
property in interface org.apache.tinkerpop.gremlin.structure.Vertex<V> TitanVertexProperty<V> property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality, String key, V value, Object... keyValues)
property in interface org.apache.tinkerpop.gremlin.structure.Vertexdefault String label()
label in interface org.apache.tinkerpop.gremlin.structure.ElementVertexLabel vertexLabel()
TitanVertexQuery<? extends TitanVertexQuery> query()
TitanVertexQuery for this vertex.
Initializes and returns a new TitanVertexQuery based on this vertex.TitanVertexQueryboolean isModified()
Copyright © 2012–2015. All rights reserved.