| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ValueAggregatorval - an object.public String getReport()
getReport in interface ValueAggregatorpublic Set getUniqueItems()
public void reset()
reset in interface ValueAggregatorpublic ArrayList getCombinerOutput()
getCombinerOutput in interface ValueAggregator
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||