@InterfaceAudience.Public @InterfaceStability.Stable public class UniqValueCount extends Object implements ValueAggregator<Object>
| 修飾子とタイプ | フィールドと説明 | 
|---|---|
| static String | MAX_NUM_UNIQUE_VALUES | 
| コンストラクタと説明 | 
|---|
| UniqValueCount()the default constructor | 
| UniqValueCount(long maxNum)constructor | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| 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 インタフェース内 ValueAggregator<Object>val - an object.public String getReport()
getReport インタフェース内 ValueAggregator<Object>public Set<Object> getUniqueItems()
public void reset()
reset インタフェース内 ValueAggregator<Object>public ArrayList<Object> getCombinerOutput()
getCombinerOutput インタフェース内 ValueAggregator<Object>Copyright © 2016 Apache Software Foundation. All rights reserved.