public final class GroupSideEffectStep<S,K,V> extends SideEffectStep<S> implements SideEffectCapable, TraversalParent, EngineDependent, MapReducer<K,Collection<?>,K,V,Map<K,V>>
Modifier and Type | Class and Description |
---|---|
static class |
GroupSideEffectStep.GroupSideEffectMapReduce<S,K,V> |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
GroupSideEffectStep(Traversal.Admin traversal,
String sideEffectKey) |
Modifier and Type | Method and Description |
---|---|
void |
addLocalChild(Traversal.Admin<?,?> kvTraversal) |
GroupSideEffectStep<S,K,V> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
List<Traversal.Admin<?,?>> |
getLocalChildren() |
MapReduce<K,Collection<?>,K,V,Map<K,V>> |
getMapReduce() |
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() |
processNextStart
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal
finalize, getClass, notify, notifyAll, wait, wait, wait
addGlobalChild, asStep, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild
forEachRemaining, remove
public GroupSideEffectStep(Traversal.Admin traversal, String sideEffectKey)
public void addLocalChild(Traversal.Admin<?,?> kvTraversal)
addLocalChild
in interface TraversalParent
protected void sideEffect(Traverser.Admin<S> traverser)
sideEffect
in class SideEffectStep<S>
public String getSideEffectKey()
getSideEffectKey
in interface SideEffectCapable
public void onEngine(TraversalEngine traversalEngine)
onEngine
in interface EngineDependent
public MapReduce<K,Collection<?>,K,V,Map<K,V>> getMapReduce()
getMapReduce
in interface MapReducer<K,Collection<?>,K,V,Map<K,V>>
public String toString()
toString
in class AbstractStep<S,S>
public List<Traversal.Admin<?,?>> getLocalChildren()
getLocalChildren
in interface TraversalParent
public Set<TraverserRequirement> getRequirements()
Step
TraverserRequirement
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> clone()
Step
EmptyStep
.public int hashCode()
hashCode
in class AbstractStep<S,S>
Copyright © 2013–2016 Apache Software Foundation. All rights reserved.