public final class GroupCountSideEffectStep<S,E> extends SideEffectStep<S> implements SideEffectCapable, TraversalParent, MapReducer<E,Long,E,Long,Map<E,Long>>
| Modifier and Type | Class and Description |
|---|---|
static class |
GroupCountSideEffectStep.GroupCountSideEffectMapReduce<E> |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild| Constructor and Description |
|---|
GroupCountSideEffectStep(Traversal.Admin traversal,
String sideEffectKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLocalChild(Traversal.Admin<?,?> groupTraversal) |
GroupCountSideEffectStep<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. |
String |
getSideEffectKey() |
int |
hashCode() |
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 GroupCountSideEffectStep(Traversal.Admin traversal, String sideEffectKey)
protected void sideEffect(Traverser.Admin<S> traverser)
sideEffect in class SideEffectStep<S>public String getSideEffectKey()
getSideEffectKey in interface SideEffectCapablepublic MapReduce<E,Long,E,Long,Map<E,Long>> getMapReduce()
getMapReduce in interface MapReducer<E,Long,E,Long,Map<E,Long>>public String toString()
toString in class AbstractStep<S,S>public void addLocalChild(Traversal.Admin<?,?> groupTraversal)
addLocalChild in interface TraversalParentpublic List<Traversal.Admin<S,E>> getLocalChildren()
getLocalChildren 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 GroupCountSideEffectStep<S,E> clone()
StepEmptyStep.public int hashCode()
hashCode in class AbstractStep<S,S>Copyright © 2013–2015 Apache Software Foundation. All rights reserved.