public class StrategyVertexProperty<V> extends StrategyElement implements VertexProperty<V>, StrategyWrapped, WrappedVertexProperty<VertexProperty<V>>, VertexProperty.Iterators
VertexProperty.Exceptions, VertexProperty.IteratorsbaseElement, elementStrategyContext, strategy, strategyGraphDEFAULT_LABEL| Constructor and Description |
|---|
StrategyVertexProperty(VertexProperty<V> baseVertexProperty,
StrategyGraph strategyGraph) |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
element()
Gets the
Vertex that owns this VertexProperty. |
VertexProperty<V> |
getBaseVertexProperty() |
Graph |
graph()
Get the graph that this element is within.
|
java.lang.Object |
id()
Gets the unique identifier for the graph
Element. |
boolean |
isPresent()
Whether the property is empty or not.
|
VertexProperty.Iterators |
iterators()
Gets the
VertexProperty.Iterators set. |
java.lang.String |
key()
The key of the property.
|
java.util.Set<java.lang.String> |
keys()
Get the keys of the properties associated with this element.
|
java.lang.String |
label()
Gets the label for the graph
Element which helps categorize it. |
<U> Property<U> |
property(java.lang.String key,
U value)
Add or set a property value for the
Element given its key. |
<U> java.util.Iterator<Property<U>> |
propertyIterator(java.lang.String... propertyKeys)
Get an
Iterator of properties. |
void |
remove()
Remove the property from the associated element.
|
java.lang.String |
toString() |
V |
value()
The value of the property.
|
<U> java.util.Iterator<U> |
valueIterator(java.lang.String... propertyKeys)
Get the values of properties as an
Iterator. |
equals, getBaseElement, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitemptyifPresent, orElse, orElseGet, orElseThrowproperties, 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, withSideEffectpublic StrategyVertexProperty(VertexProperty<V> baseVertexProperty, StrategyGraph strategyGraph)
public Graph graph()
VertexPropertygraph in interface Elementgraph in interface VertexProperty<V>public java.lang.Object id()
ElementElement.public java.lang.String label()
VertexPropertyElement which helps categorize it.label in interface Elementlabel in interface VertexProperty<V>public java.util.Set<java.lang.String> keys()
ElementHashSet.public Vertex element()
VertexPropertyVertex that owns this VertexProperty.element in interface Property<V>element in interface VertexProperty<V>Vertex, Edge, or VertexProperty).public VertexProperty.Iterators iterators()
VertexPropertyVertexProperty.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.iterators in interface Elementiterators in interface VertexProperty<V>public <U> Property<U> property(java.lang.String key, U value)
ElementElement given its key.public java.lang.String key()
Propertypublic V value() throws java.util.NoSuchElementException
Propertypublic boolean isPresent()
Propertypublic void remove()
Propertypublic VertexProperty<V> getBaseVertexProperty()
getBaseVertexProperty in interface WrappedVertexProperty<VertexProperty<V>>public java.lang.String toString()
toString in class java.lang.Objectpublic <U> java.util.Iterator<Property<U>> propertyIterator(java.lang.String... propertyKeys)
VertexProperty.IteratorsIterator of properties.propertyIterator in interface Element.IteratorspropertyIterator in interface VertexProperty.Iteratorspublic <U> java.util.Iterator<U> valueIterator(java.lang.String... propertyKeys)
Element.IteratorsIterator.valueIterator in interface Element.IteratorsCopyright © 2013-2015 TinkerPop. All Rights Reserved.