Uses of Interface
org.apache.flink.api.common.accumulators.Accumulator
-
Packages that use Accumulator Package Description org.apache.flink.api.common.accumulators org.apache.flink.api.common.functions org.apache.flink.api.common.functions.util -
-
Uses of Accumulator in org.apache.flink.api.common.accumulators
Subinterfaces of Accumulator in org.apache.flink.api.common.accumulators Modifier and Type Interface Description interfaceSimpleAccumulator<T extends Serializable>Similar to Accumulator, but the type of items to add and the result value must be the same.Classes in org.apache.flink.api.common.accumulators that implement Accumulator Modifier and Type Class Description classAverageAccumulatorAn accumulator that computes the average value.classDoubleCounterAn accumulator that sums updoublevalues.classDoubleMaximumAn accumulator that finds the maximumdoublevalue.classDoubleMinimumAn accumulator that finds the minimumdoublevalue.classHistogramHistogram accumulator, which builds a histogram in a distributed manner.classIntCounterAn accumulator that sums upIntegervalues.classIntMaximumAn accumulator that finds the maximumintegervalue.classIntMinimumAn accumulator that finds the minimumintegervalue.classListAccumulator<T>This accumulator stores a collection of objects.classLongCounterAn accumulator that sums uplongvalues.classLongMaximumAn accumulator that finds the maximumlongvalue.classLongMinimumAn accumulator that finds the minimumlongvalue.classSerializedListAccumulator<T>This accumulator stores a collection of objects in serialized form, so that the stored objects are not affected by modifications to the original objects.Methods in org.apache.flink.api.common.accumulators that return Accumulator Modifier and Type Method Description Accumulator<V,R>Accumulator. clone()Duplicates the accumulator.Accumulator<Integer,TreeMap<Integer,Integer>>Histogram. clone()Accumulator<T,ArrayList<T>>ListAccumulator. clone()Methods in org.apache.flink.api.common.accumulators that return types with arguments of type Accumulator Modifier and Type Method Description static Map<String,Accumulator<?,?>>AccumulatorHelper. copy(Map<String,Accumulator<?,?>> accumulators)Methods in org.apache.flink.api.common.accumulators with parameters of type Accumulator Modifier and Type Method Description voidAccumulator. merge(Accumulator<V,R> other)Used by system internally to merge the collected parts of an accumulator at the end of the job.voidAverageAccumulator. merge(Accumulator<Double,Double> other)voidDoubleCounter. merge(Accumulator<Double,Double> other)voidDoubleMaximum. merge(Accumulator<Double,Double> other)voidDoubleMinimum. merge(Accumulator<Double,Double> other)voidHistogram. merge(Accumulator<Integer,TreeMap<Integer,Integer>> other)voidIntCounter. merge(Accumulator<Integer,Integer> other)voidIntMaximum. merge(Accumulator<Integer,Integer> other)voidIntMinimum. merge(Accumulator<Integer,Integer> other)voidListAccumulator. merge(Accumulator<T,ArrayList<T>> other)voidLongCounter. merge(Accumulator<Long,Long> other)voidLongMaximum. merge(Accumulator<Long,Long> other)voidLongMinimum. merge(Accumulator<Long,Long> other)voidSerializedListAccumulator. merge(Accumulator<T,ArrayList<byte[]>> other)Method parameters in org.apache.flink.api.common.accumulators with type arguments of type Accumulator Modifier and Type Method Description static voidAccumulatorHelper. compareAccumulatorTypes(Object name, Class<? extends Accumulator> first, Class<? extends Accumulator> second)Compare both classes and throwUnsupportedOperationExceptionif they differ.static Map<String,Accumulator<?,?>>AccumulatorHelper. copy(Map<String,Accumulator<?,?>> accumulators)static voidAccumulatorHelper. mergeInto(Map<String,OptionalFailure<Accumulator<?,?>>> target, Map<String,Accumulator<?,?>> toMerge)Merge two collections of accumulators.static Map<String,OptionalFailure<Object>>AccumulatorHelper. toResultMap(Map<String,Accumulator<?,?>> accumulators)Transform the Map with accumulators into a Map containing only the results. -
Uses of Accumulator in org.apache.flink.api.common.functions
Methods in org.apache.flink.api.common.functions that return Accumulator Modifier and Type Method Description <V,A extends Serializable>
Accumulator<V,A>RuntimeContext. getAccumulator(String name)Get an existing accumulator object.Methods in org.apache.flink.api.common.functions with parameters of type Accumulator Modifier and Type Method Description <V,A extends Serializable>
voidRuntimeContext. addAccumulator(String name, Accumulator<V,A> accumulator)Add this accumulator. -
Uses of Accumulator in org.apache.flink.api.common.functions.util
Methods in org.apache.flink.api.common.functions.util that return Accumulator Modifier and Type Method Description <V,A extends Serializable>
Accumulator<V,A>AbstractRuntimeUDFContext. getAccumulator(String name)Methods in org.apache.flink.api.common.functions.util with parameters of type Accumulator Modifier and Type Method Description <V,A extends Serializable>
voidAbstractRuntimeUDFContext. addAccumulator(String name, Accumulator<V,A> accumulator)Constructor parameters in org.apache.flink.api.common.functions.util with type arguments of type Accumulator Constructor Description AbstractRuntimeUDFContext(TaskInfo taskInfo, UserCodeClassLoader userCodeClassLoader, ExecutionConfig executionConfig, Map<String,Accumulator<?,?>> accumulators, Map<String,Future<Path>> cpTasks, org.apache.flink.metrics.groups.OperatorMetricGroup metrics)
-