Class LongMinimum
- java.lang.Object
-
- org.apache.flink.api.common.accumulators.LongMinimum
-
- All Implemented Interfaces:
Serializable,Cloneable,Accumulator<Long,Long>,SimpleAccumulator<Long>
@PublicEvolving public class LongMinimum extends Object implements SimpleAccumulator<Long>
An accumulator that finds the minimumlongvalue.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LongMinimum()LongMinimum(long value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long value)voidadd(Long value)Consider usingadd(long)instead for primitive long valuesLongMinimumclone()Duplicates the accumulator.LonggetLocalValue()longgetLocalValuePrimitive()voidmerge(Accumulator<Long,Long> 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(Long value)
Consider usingadd(long)instead for primitive long values- Specified by:
addin interfaceAccumulator<Long,Long>- Parameters:
value- The value to add to the accumulator object
-
getLocalValue
public Long getLocalValue()
- Specified by:
getLocalValuein interfaceAccumulator<Long,Long>- Returns:
- local The local value from the current UDF context
-
merge
public void merge(Accumulator<Long,Long> 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<Long,Long>- 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<Long,Long>
-
clone
public LongMinimum clone()
Description copied from interface:AccumulatorDuplicates the accumulator. All subclasses need to properly implement cloning and cannot throw aCloneNotSupportedException
-
add
public void add(long value)
-
getLocalValuePrimitive
public long getLocalValuePrimitive()
-
-