Class ObjectHashSet<T>
java.lang.Object
org.apache.flink.table.runtime.util.collections.OptimizableHashSet
org.apache.flink.table.runtime.util.collections.ObjectHashSet<T>
Wrap
HashSet with hashSet interface.-
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
-
ObjectHashSet
public ObjectHashSet(int expected, float f) -
ObjectHashSet
public ObjectHashSet(int expected) -
ObjectHashSet
public ObjectHashSet()
-
-
Method Details
-
add
-
contains
-
optimize
public void optimize()Description copied from class:OptimizableHashSetDecide whether to convert to dense mode.- Specified by:
optimizein classOptimizableHashSet
-