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