public final class GroupCountStep<S,E> extends ReducingBarrierStep<S,Map<E,Long>> implements MapReducer, TraversalParent
Modifier and Type | Class and Description |
---|---|
static class |
GroupCountStep.GroupCountMapReduce<E> |
ReducingBarrierStep.DefaultMapReduce, ReducingBarrierStep.FinalGet<A>
byPass, REDUCING, reducingBiFunction, seedSupplier
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdSetByChild
Constructor and Description |
---|
GroupCountStep(Traversal.Admin traversal) |
Modifier and Type | Method and Description |
---|---|
void |
addLocalChild(Traversal.Admin<?,?> groupTraversal) |
GroupCountStep<S,E> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
List<Traversal.Admin<S,E>> |
getLocalChildren() |
MapReduce<E,Long,E,Long,Map<E,Long>> |
getMapReduce() |
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<E,Long>> |
processNextStart() |
String |
toString() |
onEngine, reset, setBiFunction, setSeedSupplier
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, setId, setNextStep, setPreviousStep, setTraversal
finalize, getClass, notify, notifyAll, wait, wait, wait
addGlobalChild, asStep, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild
forEachRemaining, remove
public GroupCountStep(Traversal.Admin traversal)
public void addLocalChild(Traversal.Admin<?,?> groupTraversal)
addLocalChild
in interface TraversalParent
public List<Traversal.Admin<S,E>> 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.public MapReduce<E,Long,E,Long,Map<E,Long>> getMapReduce()
getMapReduce
in interface MapReducer
getMapReduce
in class ReducingBarrierStep<S,Map<E,Long>>
public GroupCountStep<S,E> clone()
Step
EmptyStep
.public Traverser<Map<E,Long>> processNextStart()
processNextStart
in class ReducingBarrierStep<S,Map<E,Long>>
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.