Class BulkIterationBase.TerminationCriterionAggregator
- java.lang.Object
-
- org.apache.flink.api.common.operators.base.BulkIterationBase.TerminationCriterionAggregator
-
- All Implemented Interfaces:
Serializable,Aggregator<LongValue>
- Enclosing class:
- BulkIterationBase<T>
public static class BulkIterationBase.TerminationCriterionAggregator extends Object implements Aggregator<LongValue>
Aggregator that basically only adds 1 for every output tuple of the termination criterion branch- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TerminationCriterionAggregator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaggregate(long count)voidaggregate(LongValue count)Aggregates the given element.LongValuegetAggregate()Gets the aggregator's current aggregate.voidreset()Resets the internal state of the aggregator.
-
-
-
Method Detail
-
getAggregate
public LongValue getAggregate()
Description copied from interface:AggregatorGets the aggregator's current aggregate.- Specified by:
getAggregatein interfaceAggregator<LongValue>- Returns:
- The aggregator's current aggregate.
-
aggregate
public void aggregate(long count)
-
aggregate
public void aggregate(LongValue count)
Description copied from interface:AggregatorAggregates the given element. In the case of a sum aggregator, this method adds the given value to the sum.- Specified by:
aggregatein interfaceAggregator<LongValue>- Parameters:
count- The element to aggregate.
-
reset
public void reset()
Description copied from interface:AggregatorResets the internal state of the aggregator. This must bring the aggregator into the same state as if it was newly initialized.- Specified by:
resetin interfaceAggregator<LongValue>
-
-