Class DoubleMinimum
- java.lang.Object
-
- org.apache.flink.api.common.accumulators.DoubleMinimum
-
- All Implemented Interfaces:
Serializable,Cloneable,Accumulator<Double,Double>,SimpleAccumulator<Double>
@PublicEvolving public class DoubleMinimum extends Object implements SimpleAccumulator<Double>
An accumulator that finds the minimumdoublevalue.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DoubleMinimum()DoubleMinimum(double value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(double value)voidadd(Double value)Consider usingadd(double)instead for primitive double valuesDoubleMinimumclone()Duplicates the accumulator.DoublegetLocalValue()doublegetLocalValuePrimitive()voidmerge(Accumulator<Double,Double> other)Used by system internally to merge the collected parts of an accumulator at the end of the job.voidresetLocal()Reset the local value.StringtoString()
-
-
-
Method Detail
-
add
public void add(Double value)
Consider usingadd(double)instead for primitive double values- Specified by:
addin interfaceAccumulator<Double,Double>- Parameters:
value- The value to add to the accumulator object
-
getLocalValue
public Double getLocalValue()
- Specified by:
getLocalValuein interfaceAccumulator<Double,Double>- Returns:
- local The local value from the current UDF context
-
merge
public void merge(Accumulator<Double,Double> other)
Description copied from interface:AccumulatorUsed by system internally to merge the collected parts of an accumulator at the end of the job.- Specified by:
mergein interfaceAccumulator<Double,Double>- Parameters:
other- Reference to accumulator to merge in.
-
resetLocal
public void resetLocal()
Description copied from interface:AccumulatorReset the local value. This only affects the current UDF context.- Specified by:
resetLocalin interfaceAccumulator<Double,Double>
-
clone
public DoubleMinimum clone()
Description copied from interface:AccumulatorDuplicates the accumulator. All subclasses need to properly implement cloning and cannot throw aCloneNotSupportedException
-
add
public void add(double value)
-
getLocalValuePrimitive
public double getLocalValuePrimitive()
-
-