public interface JanusGraphVertex extends JanusGraphElement, org.apache.tinkerpop.gremlin.structure.Vertex
JanusGraph.
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 JanusGraphRelation a vertex has a vertex label.| Modifier and Type | Method and Description |
|---|---|
JanusGraphEdge |
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> JanusGraphVertexProperty<V> |
property(String key,
V value)
Creates a new property for this vertex and given key with the specified value.
|
<V> JanusGraphVertexProperty<V> |
property(String key,
V value,
Object... keyValues) |
<V> JanusGraphVertexProperty<V> |
property(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality,
String key,
V value,
Object... keyValues) |
JanusGraphVertexQuery<? extends JanusGraphVertexQuery> |
query()
Starts a new
JanusGraphVertexQuery for this vertex. |
VertexLabel |
vertexLabel()
Returns the vertex label of this vertex.
|
graph, hasId, id, isLoaded, isNew, isRemoved, longId, remove, valueOrNullJanusGraphEdge addEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex vertex, Object... keyValues)
JanusGraphEdge 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> JanusGraphVertexProperty<V> property(String key, V value)
JanusGraphVertexProperty 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 JanusGraphElementproperty 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> JanusGraphVertexProperty<V> property(String key, V value, Object... keyValues)
property in interface org.apache.tinkerpop.gremlin.structure.Vertex<V> JanusGraphVertexProperty<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()
JanusGraphVertexQuery<? extends JanusGraphVertexQuery> query()
JanusGraphVertexQuery for this vertex.
Initializes and returns a new JanusGraphVertexQuery based on this vertex.JanusGraphVertexQueryboolean isModified()
Copyright © 2012–2017. All rights reserved.