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