Package io.trino.orc.metadata.statistics
Class BloomFilter.BitSet
- java.lang.Object
-
- io.trino.orc.metadata.statistics.BloomFilter.BitSet
-
- Enclosing class:
- BloomFilter
public static class BloomFilter.BitSet extends Object
Bare metal bit set implementation. For performance reasons, this implementation does not check for index bounds nor expand the bit set size if the specified index is greater than the size.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longbitSize()Number of bitsbooleanget(int index)Returns true if the bit is set in the specified index.long[]getData()voidset(int index)Sets the bit at specified index.
-
-
-
Method Detail
-
set
public void set(int index)
Sets the bit at specified index.- Parameters:
index- - position
-
get
public boolean get(int index)
Returns true if the bit is set in the specified index.- Parameters:
index- - position- Returns:
- - value at the bit position
-
bitSize
public long bitSize()
Number of bits
-
getData
public long[] getData()
-
-