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, remove, valueOrNull
JanusGraphEdge addEdge(String label, org.apache.tinkerpop.gremlin.structure.Vertex vertex, Object... keyValues)
Creates and returns a new JanusGraphEdge
of the specified label with this vertex being the outgoing vertex
and the given vertex being the incoming vertex.
Automatically creates the edge label if it does not exist and automatic creation of types is enabled. Otherwise,
this method with throw an IllegalArgumentException
.
addEdge
in interface org.apache.tinkerpop.gremlin.structure.Vertex
label
- label of the edge to be createdvertex
- incoming vertex of the edge to be createddefault <V> JanusGraphVertexProperty<V> property(String key, V value)
Creates and returns a new JanusGraphVertexProperty
for the given key on this vertex with the specified
object being the value.
Automatically creates the property key if it does not exist and automatic creation of types is enabled. Otherwise,
this method with throw an IllegalArgumentException
.
property
in interface org.apache.tinkerpop.gremlin.structure.Element
property
in interface JanusGraphElement
property
in interface org.apache.tinkerpop.gremlin.structure.Vertex
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.<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.Vertex
default String label()
label
in interface org.apache.tinkerpop.gremlin.structure.Element
VertexLabel vertexLabel()
JanusGraphVertexQuery<? extends JanusGraphVertexQuery> query()
JanusGraphVertexQuery
for this vertex.
Initializes and returns a new JanusGraphVertexQuery
based on this vertex.
JanusGraphVertexQuery
boolean isModified()
Copyright © 2012–2024. All rights reserved.