public final class GroupSideEffectStep<S,K,V,R> extends SideEffectStep<S> implements SideEffectCapable, TraversalParent, EngineDependent, MapReducer<K,Collection<V>,K,R,Map<K,R>>
| Modifier and Type | Class and Description |
|---|---|
static class |
GroupSideEffectStep.GroupSideEffectMapReduce<K,V,R> |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdSetByChild| Constructor and Description |
|---|
GroupSideEffectStep(Traversal.Admin traversal,
String sideEffectKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLocalChild(Traversal.Admin<?,?> kvrTraversal) |
GroupSideEffectStep<S,K,V,R> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
<A,B> List<Traversal.Admin<A,B>> |
getLocalChildren() |
MapReduce<K,Collection<V>,K,R,Map<K,R>> |
getMapReduce() |
Traversal.Admin<Collection<V>,R> |
getReduceTraversal() |
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
String |
getSideEffectKey() |
int |
hashCode() |
void |
onEngine(TraversalEngine traversalEngine) |
protected void |
sideEffect(Traverser.Admin<S> traverser) |
String |
toString() |
processNextStartaddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversalfinalize, getClass, notify, notifyAll, wait, wait, waitaddGlobalChild, asStep, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChildforEachRemaining, removepublic GroupSideEffectStep(Traversal.Admin traversal, String sideEffectKey)
protected void sideEffect(Traverser.Admin<S> traverser)
sideEffect in class SideEffectStep<S>public String getSideEffectKey()
getSideEffectKey in interface SideEffectCapablepublic void onEngine(TraversalEngine traversalEngine)
onEngine in interface EngineDependentpublic MapReduce<K,Collection<V>,K,R,Map<K,R>> getMapReduce()
getMapReduce in interface MapReducer<K,Collection<V>,K,R,Map<K,R>>public String toString()
toString in class AbstractStep<S,S>public <A,B> List<Traversal.Admin<A,B>> getLocalChildren()
getLocalChildren in interface TraversalParentpublic Traversal.Admin<Collection<V>,R> getReduceTraversal()
public void addLocalChild(Traversal.Admin<?,?> kvrTraversal)
addLocalChild in interface TraversalParentpublic Set<TraverserRequirement> getRequirements()
StepTraverserRequirement that must be met by the traverser in order for the step to function properly.
The provided default implements returns an empty set.getRequirements in interface Step<S,S>public GroupSideEffectStep<S,K,V,R> clone()
StepEmptyStep.public int hashCode()
hashCode in class AbstractStep<S,S>Copyright © 2013–2015 Apache Software Foundation. All rights reserved.