Class LongHashSet
- java.lang.Object
-
- org.apache.flink.table.runtime.util.collections.OptimizableHashSet
-
- org.apache.flink.table.runtime.util.collections.LongHashSet
-
public class LongHashSet extends OptimizableHashSet
Long 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 LongHashSet()
LongHashSet(int expected)
LongHashSet(int expected, float f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(long k)
boolean
contains(long 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(long k)
-
contains
public boolean contains(long k)
-
optimize
public void optimize()
Description copied from class:OptimizableHashSet
Decide whether to convert to dense mode.- Specified by:
optimize
in classOptimizableHashSet
-
-