public static class ApproximateUnique.ApproximateUniqueCombineFn.LargestUnique extends Object implements Serializable
| Constructor and Description |
|---|
LargestUnique(long sampleSize)
Creates a heap to track the largest
sampleSize elements. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Long value)
Adds a value to the heap, returning whether the value is (large enough
to be) in the heap.
|
List<Long> |
extractOrderedList()
Returns the values in the heap, ordered largest to smallest.
|