|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.lib.aggregate.UniqValueCount
public class UniqValueCount
This class implements a value aggregator that dedupes a sequence of objects.
Constructor Summary | |
---|---|
UniqValueCount()
the default constructor |
|
UniqValueCount(long maxNum)
constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniqValueCount()
public UniqValueCount(long maxNum)
maxNum
- the limit in the number of unique values to keep.Method Detail |
---|
public long setMaxItems(long n)
n
- the desired limit on the number of unique values
public void addNextValue(Object val)
addNextValue
in interface ValueAggregator
val
- an object.public String getReport()
getReport
in interface ValueAggregator
public Set getUniqueItems()
public void reset()
reset
in interface ValueAggregator
public ArrayList getCombinerOutput()
getCombinerOutput
in interface ValueAggregator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |