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 ValueAggregator
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 java.lang.String getReport()
getReport
in interface ValueAggregator
public java.lang.String getReportDetails()
public java.util.ArrayList getCombinerOutput()
getCombinerOutput
in interface ValueAggregator
public java.util.TreeMap getReportItems()
public void reset()
reset
in interface ValueAggregator
Copyright © 2009 The Apache Software Foundation