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
在接口中 ValueAggregator
val
- an object.public String getReport()
getReport
在接口中 ValueAggregator
public Set getUniqueItems()
public void reset()
reset
在接口中 ValueAggregator
public ArrayList getCombinerOutput()
getCombinerOutput
在接口中 ValueAggregator
Copyright © 2009 The Apache Software Foundation