public class StrategyVertex extends StrategyElement implements Vertex, StrategyWrapped, WrappedVertex<Vertex>, Vertex.Iterators
| Modifier and Type | Class and Description |
|---|---|
static class |
StrategyVertex.StrategyVertexIterator |
Vertex.Exceptions, Vertex.IteratorsbaseElement, elementStrategyContext, strategy, strategyGraphDEFAULT_LABEL| Constructor and Description |
|---|
StrategyVertex(Vertex baseVertex,
StrategyGraph strategyGraph) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
addEdge(java.lang.String label,
Vertex inVertex,
java.lang.Object... keyValues)
Add an outgoing edge to the vertex with provided label and edge properties as key/value pairs.
|
java.util.Iterator<Edge> |
edgeIterator(Direction direction,
java.lang.String... edgeLabels)
Gets an
Iterator of incident edges. |
Vertex |
getBaseVertex() |
Graph |
graph()
Get the graph that this element is within.
|
java.lang.Object |
id()
Gets the unique identifier for the graph
Element. |
Vertex.Iterators |
iterators()
Get the
Vertex.Iterators implementation associated with this Vertex. |
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. |
<V> VertexProperty<V> |
property(java.lang.String key)
Get a
Property for the Element given its key. |
<V> VertexProperty<V> |
property(java.lang.String key,
V value)
Add or set a property value for the
Element given its key. |
<V> java.util.Iterator<VertexProperty<V>> |
propertyIterator(java.lang.String... propertyKeys)
Get an
Iterator of properties. |
void |
remove()
Removes the
Element from the graph. |
java.lang.String |
toString() |
<V> V |
value(java.lang.String key)
Get the value of a
Property given it's key. |
<V> java.util.Iterator<V> |
valueIterator(java.lang.String... propertyKeys)
Get the values of properties as an
Iterator. |
java.util.Iterator<Vertex> |
vertexIterator(Direction direction,
java.lang.String... labels)
Gets an
Iterator of adjacent vertices. |
equals, getBaseElement, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitproperty, singlePropertyproperties, propertyMap, start, value, 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 StrategyVertex(Vertex baseVertex, StrategyGraph strategyGraph)
public Graph graph()
Elementpublic java.lang.Object id()
ElementElement.public java.lang.String label()
ElementElement which helps categorize it.public java.util.Set<java.lang.String> keys()
ElementHashSet.public Vertex.Iterators iterators()
VertexVertex.Iterators implementation associated with this Vertex.
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.public <V> V value(java.lang.String key)
throws java.util.NoSuchElementException
ElementProperty given it's key.
The default implementation calls Element.property(java.lang.String) and then returns the associated value.public void remove()
ElementElement from the graph.public Vertex getBaseVertex()
getBaseVertex in interface WrappedVertex<Vertex>public Edge addEdge(java.lang.String label, Vertex inVertex, java.lang.Object... keyValues)
VertexString
property keys and the even numbered arguments are the related property values.public <V> VertexProperty<V> property(java.lang.String key, V value)
ElementElement given its key.public <V> VertexProperty<V> property(java.lang.String key)
ElementProperty for the Element given its key.
The default implementation calls the raw Element#iterators#propertyIterator.public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<Edge> edgeIterator(Direction direction, java.lang.String... edgeLabels)
Vertex.IteratorsIterator of incident edges.edgeIterator in interface Vertex.Iteratorsdirection - The incident direction of the edges to retrieve off this vertexedgeLabels - The labels of the edges to retrieve. If no labels are provided, then get all edges.public java.util.Iterator<Vertex> vertexIterator(Direction direction, java.lang.String... labels)
Vertex.IteratorsIterator of adjacent vertices.vertexIterator in interface Vertex.Iteratorsdirection - The adjacency direction of the vertices to retrieve off this vertexlabels - The labels of the edges associated with the vertices to retrieve. If no labels are provided, then get all edges.public <V> java.util.Iterator<V> valueIterator(java.lang.String... propertyKeys)
Element.IteratorsIterator.valueIterator in interface Element.Iteratorspublic <V> java.util.Iterator<VertexProperty<V>> propertyIterator(java.lang.String... propertyKeys)
Vertex.IteratorsIterator of properties.propertyIterator in interface Element.IteratorspropertyIterator in interface Vertex.IteratorsCopyright © 2013-2015 TinkerPop. All Rights Reserved.