Class DoubleHashSet
- java.lang.Object
-
- org.apache.flink.table.runtime.util.collections.OptimizableHashSet
-
- org.apache.flink.table.runtime.util.collections.DoubleHashSet
-
public class DoubleHashSet extends OptimizableHashSet
Double hash set.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.table.runtime.util.collections.OptimizableHashSet
containsNull, containsZero, DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, DENSE_THRESHOLD, f, isDense, mask, maxFill, n, size, used
-
-
Constructor Summary
Constructors Constructor Description DoubleHashSet()
DoubleHashSet(int expected)
DoubleHashSet(int expected, float f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(double k)
boolean
contains(double k)
void
optimize()
Decide whether to convert to dense mode.-
Methods inherited from class org.apache.flink.table.runtime.util.collections.OptimizableHashSet
addNull, arraySize, containsNull, maxFill, nextPowerOfTwo, realSize
-
-
-
-
Method Detail
-
add
public boolean add(double k)
-
contains
public boolean contains(double k)
-
optimize
public void optimize()
Description copied from class:OptimizableHashSet
Decide whether to convert to dense mode.- Specified by:
optimize
in classOptimizableHashSet
-
-