@InterfaceAudience.Public @InterfaceStability.Stable public class UniqValueCount extends Object implements ValueAggregator<Object>
| Modifier and Type | Field and Description | 
|---|---|
| static String | MAX_NUM_UNIQUE_VALUES | 
| Constructor and Description | 
|---|
| UniqValueCount()the default constructor | 
| UniqValueCount(long maxNum)constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addNextValue(Object val)add a value to the aggregator | 
| ArrayList<Object> | getCombinerOutput() | 
| String | getReport() | 
| Set<Object> | getUniqueItems() | 
| void | reset()reset the aggregator | 
| long | setMaxItems(long n)Set the limit on the number of unique values | 
public static final String MAX_NUM_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 in interface ValueAggregator<Object>val - an object.public String getReport()
getReport in interface ValueAggregator<Object>public Set<Object> getUniqueItems()
public void reset()
reset in interface ValueAggregator<Object>public ArrayList<Object> getCombinerOutput()
getCombinerOutput in interface ValueAggregator<Object>Copyright © 2017 Apache Software Foundation. All rights reserved.