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  sampleSizeelements. | 
| 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. | 
| boolean | equals(@Nullable java.lang.Object o) | 
| int | hashCode() | 
public LargestUnique(long sampleSize)
sampleSize elements.sampleSize - the size of the heappublic boolean add(long value)
public boolean equals(@Nullable java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object