public class ValueHistogram extends Object implements ValueAggregator
| Constructor and Description |
|---|
ValueHistogram() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNextValue(Object val)
add the given val to the aggregator.
|
ArrayList |
getCombinerOutput() |
String |
getReport() |
String |
getReportDetails() |
TreeMap |
getReportItems() |
void |
reset()
reset the aggregator
|
public void addNextValue(Object val)
addNextValue in interface ValueAggregatorval - 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 ValueAggregatorpublic String getReportDetails()
public ArrayList getCombinerOutput()
getCombinerOutput in interface ValueAggregatorpublic TreeMap getReportItems()
public void reset()
reset in interface ValueAggregatorCopyright © 2009 The Apache Software Foundation