Class IntHashSet
java.lang.Object
org.apache.flink.table.runtime.util.collections.OptimizableHashSet
org.apache.flink.table.runtime.util.collections.IntHashSet
Int 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 -
Method Summary
Methods inherited from class org.apache.flink.table.runtime.util.collections.OptimizableHashSet
addNull, arraySize, containsNull, maxFill, nextPowerOfTwo, realSize
-
Constructor Details
-
IntHashSet
public IntHashSet(int expected, float f) -
IntHashSet
public IntHashSet(int expected) -
IntHashSet
public IntHashSet()
-
-
Method Details
-
add
public boolean add(int k) -
contains
public boolean contains(int k) -
optimize
public void optimize()Description copied from class:OptimizableHashSetDecide whether to convert to dense mode.- Specified by:
optimizein classOptimizableHashSet
-