public final class MeanGlobalStep<S extends Number,E extends Number> extends ReducingBarrierStep<S,E>
Modifier and Type | Class and Description |
---|---|
static class |
MeanGlobalStep.MeanGlobalBiOperator<S extends Number> |
static class |
MeanGlobalStep.MeanNumber |
ReducingBarrierStep.NonEmittingSeed
hasProcessedOnce, NON_EMITTING_SEED, reducingBiOperator, seedSupplier
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
MeanGlobalStep(Traversal.Admin traversal) |
Modifier and Type | Method and Description |
---|---|
E |
generateFinalResult(E meanNumber)
Post-process the side-effect and return the post-processed side-effect.
|
protected E |
generateSeedFromStarts()
Advances the starts until a non-null value is found or simply returns
null . |
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to
function properly. |
void |
processAllStarts()
Process all left traversers by do not yield the resultant output.
|
E |
projectTraverser(Traverser.Admin<S> traverser) |
addBarrier, clone, done, getBiOperator, getMemoryComputeKey, getSeedSupplier, hasNextBarrier, nextBarrier, processNextStart, reset, setReducingBiOperator, setSeedSupplier
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep, setTraversal, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
forEachRemaining, remove
public MeanGlobalStep(Traversal.Admin traversal)
protected E generateSeedFromStarts()
null
. In this way, an all
null
stream will result in null
.generateSeedFromStarts
in class ReducingBarrierStep<S extends Number,E extends Number>
public void processAllStarts()
Barrier
ReducingBarrierStep
, where traversers can be processed "on the fly" and thus, reduce memory consumption.processAllStarts
in interface Barrier<E extends Number>
processAllStarts
in class ReducingBarrierStep<S extends Number,E extends Number>
public E projectTraverser(Traverser.Admin<S> traverser)
projectTraverser
in class ReducingBarrierStep<S extends Number,E extends Number>
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 E generateFinalResult(E meanNumber)
Generating
meanNumber
- the pre-processed side-effect.Copyright © 2013–2023 Apache Software Foundation. All rights reserved.