@Public public class Histogram extends Object implements Accumulator<Integer,TreeMap<Integer,Integer>>
This class does not extend to continuous values later, because it makes no attempt to put the data in bins.
Constructor and Description |
---|
Histogram() |
Modifier and Type | Method and Description |
---|---|
void |
add(Integer value) |
Accumulator<Integer,TreeMap<Integer,Integer>> |
clone()
Duplicates the accumulator.
|
TreeMap<Integer,Integer> |
getLocalValue() |
void |
merge(Accumulator<Integer,TreeMap<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)
public TreeMap<Integer,Integer> getLocalValue()
getLocalValue
in interface Accumulator<Integer,TreeMap<Integer,Integer>>
public void merge(Accumulator<Integer,TreeMap<Integer,Integer>> other)
Accumulator
public void resetLocal()
Accumulator
resetLocal
in interface Accumulator<Integer,TreeMap<Integer,Integer>>
public Accumulator<Integer,TreeMap<Integer,Integer>> clone()
Accumulator
CloneNotSupportedException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.