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