public interface VertexProperty<V> extends Property<V>, Element, VertexPropertyTraversal
VertexProperty is similar to a Property in that it denotes a key/value pair associated with an
Vertex, however it is different in the sense that it also represents an entity that it is an Element
that can have properties of its own.
Optional in that a property can be not present (i.e. empty).
The key of a property is always a String and the value of a property is an arbitrary Java object.
Each underlying graph engine will typically have constraints on what Java objects are allowed to be used as values.| Modifier and Type | Interface and Description |
|---|---|
static class |
VertexProperty.Exceptions
Common exceptions to use with a property.
|
static interface |
VertexProperty.Iterators
An interface that provides access to iterators over properties, without constructing a
Traversal object. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_LABEL |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
element()
Gets the
Vertex that owns this VertexProperty. |
static <V> VertexProperty<V> |
empty()
Constructs an empty
VertexProperty. |
default Graph |
graph()
Get the graph that this element is within.
|
VertexProperty.Iterators |
iterators()
Gets the
VertexProperty.Iterators set. |
default java.lang.String |
label()
Gets the label for the graph
Element which helps categorize it. |
ifPresent, isPresent, key, orElse, orElseGet, orElseThrow, remove, valueid, keys, property, property, remove, valueproperties, propertyMap, start, valueMap, valueMapaddBothE, addE, addInE, addOutE, aggregate, aggregate, as, back, between, both, bothE, bothV, branch, cap, cap, choose, choose, coin, count, cyclicPath, dedup, emit, emit, emit, except, except, except, filter, flatMap, fold, fold, group, group, groupCount, groupCount, has, has, has, has, has, has, has, hasNot, identity, in, inE, inject, inV, limit, local, map, match, order, otherV, out, outE, outV, path, profile, range, repeat, retain, retain, retain, sack, sack, sack, sample, select, select, shuffle, sideEffect, simplePath, store, store, subgraph, subgraph, subgraph, subgraph, submit, sum, timeLimit, times, to, toE, toV, tree, tree, unfold, union, until, until, values, where, where, where, withPath, withSack, withSack, withSideEffectstatic final java.lang.String DEFAULT_LABEL
default Graph graph()
default java.lang.String label()
Element which helps categorize it.static <V> VertexProperty<V> empty()
VertexProperty.VertexProperty.Iterators iterators()
VertexProperty.Iterators set.
Gets the iterators for the Element. Iterators provide low-level access to the data associated with
an Element as they do not come with the overhead of Traversal
construction. Use iterators in places where performance is most crucial.Copyright © 2013-2015 TinkerPop. All Rights Reserved.