public class UniqValueCount extends java.lang.Object implements ValueAggregator
Constructor and Description |
---|
UniqValueCount()
the default constructor
|
UniqValueCount(long maxNum)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addNextValue(java.lang.Object val)
add a value to the aggregator
|
java.util.ArrayList |
getCombinerOutput() |
java.lang.String |
getReport() |
java.util.Set |
getUniqueItems() |
void |
reset()
reset the aggregator
|
long |
setMaxItems(long n)
Set the limit on the number of unique values
|
public UniqValueCount()
public UniqValueCount(long maxNum)
maxNum
- the limit in the number of unique values to keep.public long setMaxItems(long n)
n
- the desired limit on the number of unique valuespublic void addNextValue(java.lang.Object val)
addNextValue
in interface ValueAggregator
val
- an object.public java.lang.String getReport()
getReport
in interface ValueAggregator
public java.util.Set getUniqueItems()
public void reset()
reset
in interface ValueAggregator
public java.util.ArrayList getCombinerOutput()
getCombinerOutput
in interface ValueAggregator
Copyright © 2009 The Apache Software Foundation