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