public final class GroupStep<S,K,V,R> extends ReducingBarrierStep<S,Map<K,R>> implements MapReducer, TraversalParent
| Modifier and Type | Class and Description |
|---|---|
static class |
GroupStep.GroupMapReduce<K,V,R> |
ReducingBarrierStep.DefaultMapReduce, ReducingBarrierStep.FinalGet<A>byPass, REDUCING, reducingBiFunction, seedSupplierid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdSetByChild| Constructor and Description |
|---|
GroupStep(Traversal.Admin traversal) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLocalChild(Traversal.Admin<?,?> kvrTraversal) |
GroupStep<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. |
int |
hashCode() |
Traverser<Map<K,R>> |
processNextStart() |
String |
toString() |
onEngine, reset, setBiFunction, setSeedSupplieraddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, setId, setNextStep, setPreviousStep, setTraversalfinalize, getClass, notify, notifyAll, wait, wait, waitaddGlobalChild, asStep, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChildforEachRemaining, removepublic GroupStep(Traversal.Admin traversal)
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.public GroupStep<S,K,V,R> clone()
StepEmptyStep.public MapReduce<K,Collection<V>,K,R,Map<K,R>> getMapReduce()
getMapReduce in interface MapReducergetMapReduce in class ReducingBarrierStep<S,Map<K,R>>public Traverser<Map<K,R>> processNextStart()
processNextStart in class ReducingBarrierStep<S,Map<K,R>>Copyright © 2013–2015 Apache Software Foundation. All rights reserved.