public class StrategyEdge extends StrategyElement implements Edge, Edge.Iterators, StrategyWrapped, WrappedEdge<Edge>
| Modifier and Type | Class and Description |
|---|---|
static class |
StrategyEdge.StrategyEdgeIterator |
Edge.Exceptions, Edge.IteratorsbaseElement, elementStrategyContext, strategy, strategyGraphDEFAULT_LABEL| Constructor and Description |
|---|
StrategyEdge(Edge baseEdge,
StrategyGraph strategyGraph) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
getBaseEdge() |
Graph |
graph()
Get the graph that this element is within.
|
java.lang.Object |
id()
Gets the unique identifier for the graph
Element. |
Edge.Iterators |
iterators()
Gets the
Edge.Iterators set. |
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> Property<V> |
property(java.lang.String key)
Get a
Property for the Element given its key. |
<V> Property<V> |
property(java.lang.String key,
V value)
Add or set a property value for the
Element given its key. |
<V> java.util.Iterator<Property<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)
Retrieve the vertex (or vertices) associated with this edge as defined by the direction.
|
equals, getBaseElement, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitproperties, 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 StrategyEdge(Edge baseEdge, StrategyGraph strategyGraph)
public Edge.Iterators iterators()
EdgeEdge.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.public Graph graph()
Elementpublic java.lang.Object id()
ElementElement.public java.lang.String label()
ElementElement which helps categorize it.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 java.util.Set<java.lang.String> keys()
ElementHashSet.public Edge getBaseEdge()
getBaseEdge in interface WrappedEdge<Edge>public <V> Property<V> property(java.lang.String key)
ElementProperty for the Element given its key.
The default implementation calls the raw Element#iterators#propertyIterator.public <V> Property<V> property(java.lang.String key, V value)
ElementElement given its key.public void remove()
ElementElement from the graph.public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<Vertex> vertexIterator(Direction direction)
Edge.IteratorsDirection.BOTH then the iterator order is: Direction.OUT then Direction.IN.vertexIterator in interface Edge.Iteratorsdirection - Get the incoming vertex, outgoing vertex, or both verticespublic <V> java.util.Iterator<V> valueIterator(java.lang.String... propertyKeys)
Element.IteratorsIterator.valueIterator in interface Element.Iteratorspublic <V> java.util.Iterator<Property<V>> propertyIterator(java.lang.String... propertyKeys)
Edge.IteratorsIterator of properties.propertyIterator in interface Edge.IteratorspropertyIterator in interface Element.IteratorsCopyright © 2013-2015 TinkerPop. All Rights Reserved.