public class UniqValueCount extends Object implements ValueAggregator
| 构造器和说明 |
|---|
UniqValueCount()
the default constructor
|
UniqValueCount(long maxNum)
constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addNextValue(Object val)
add a value to the aggregator
|
ArrayList |
getCombinerOutput() |
String |
getReport() |
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(Object val)
addNextValue 在接口中 ValueAggregatorval - an object.public String getReport()
getReport 在接口中 ValueAggregatorpublic Set getUniqueItems()
public void reset()
reset 在接口中 ValueAggregatorpublic ArrayList getCombinerOutput()
getCombinerOutput 在接口中 ValueAggregatorCopyright © 2009 The Apache Software Foundation