@InterfaceAudience.Public @InterfaceStability.Stable public class ValueHistogram extends Object implements ValueAggregator<String>
Constructor and Description |
---|
ValueHistogram() |
Modifier and Type | Method and Description |
---|---|
void |
addNextValue(Object val)
add the given val to the aggregator.
|
ArrayList<String> |
getCombinerOutput() |
String |
getReport() |
String |
getReportDetails() |
TreeMap<Object,Object> |
getReportItems() |
void |
reset()
reset the aggregator
|
public ValueHistogram()
public void addNextValue(Object val)
addNextValue
in interface ValueAggregator<String>
val
- the value to be added. It is expected to be a string
in the form of xxxx\tnum, meaning xxxx has num occurrences.public String getReport()
getReport
in interface ValueAggregator<String>
public String getReportDetails()
public ArrayList<String> getCombinerOutput()
getCombinerOutput
in interface ValueAggregator<String>
public TreeMap<Object,Object> getReportItems()
public void reset()
reset
in interface ValueAggregator<String>
Copyright © 2015 Apache Software Foundation. All rights reserved.