@PublicEvolving public class IntMinimum extends Object implements SimpleAccumulator<Integer>
integer value.| Constructor and Description |
|---|
IntMinimum() |
IntMinimum(int value) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int value) |
void |
add(Integer value)
Consider using
add(int) instead for primitive integer values |
IntMinimum |
clone()
Duplicates the accumulator.
|
Integer |
getLocalValue() |
int |
getLocalValuePrimitive() |
void |
merge(Accumulator<Integer,Integer> other)
Used by system internally to merge the collected parts of an accumulator
at the end of the job.
|
void |
resetLocal()
Reset the local value.
|
String |
toString() |
public void add(Integer value)
add(int) instead for primitive integer valuesadd in interface Accumulator<Integer,Integer>value - The value to add to the accumulator objectpublic Integer getLocalValue()
getLocalValue in interface Accumulator<Integer,Integer>public void merge(Accumulator<Integer,Integer> other)
Accumulatormerge in interface Accumulator<Integer,Integer>other - Reference to accumulator to merge in.public void resetLocal()
AccumulatorresetLocal in interface Accumulator<Integer,Integer>public IntMinimum clone()
AccumulatorCloneNotSupportedExceptionpublic void add(int value)
public int getLocalValuePrimitive()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.