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