@PublicEvolving public class LongMaximum extends Object implements SimpleAccumulator<Long>
long
value.Constructor and Description |
---|
LongMaximum() |
LongMaximum(long value) |
Modifier and Type | Method and Description |
---|---|
void |
add(long value) |
void |
add(Long value)
Consider using
add(long) instead for primitive long values |
LongMaximum |
clone()
Duplicates the accumulator.
|
Long |
getLocalValue() |
long |
getLocalValuePrimitive() |
void |
merge(Accumulator<Long,Long> 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(Long value)
add(long)
instead for primitive long valuesadd
in interface Accumulator<Long,Long>
value
- The value to add to the accumulator objectpublic Long getLocalValue()
getLocalValue
in interface Accumulator<Long,Long>
public void merge(Accumulator<Long,Long> other)
Accumulator
merge
in interface Accumulator<Long,Long>
other
- Reference to accumulator to merge in.public void resetLocal()
Accumulator
resetLocal
in interface Accumulator<Long,Long>
public LongMaximum clone()
Accumulator
CloneNotSupportedException
public void add(long value)
public long getLocalValuePrimitive()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.