Class BooleanInputStream
java.lang.Object
io.trino.orc.stream.BooleanInputStream
- All Implemented Interfaces:
ValueInputStream<BooleanStreamCheckpoint>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountBitsSet(int items) voidgetSetBits(byte[] vector, int batchSize) Sets the vector element to 1 if the bit is set.byte[]getSetBits(int batchSize) Gets a vector of bytes set to 1 if the bit is set.intgetUnsetBits(int batchSize, boolean[] vector) Sets the vector element to true if the bit is not set.booleannextBit()voidseekToCheckpoint(BooleanStreamCheckpoint checkpoint) voidskip(long items)
-
Constructor Details
-
BooleanInputStream
-
-
Method Details
-
nextBit
- Throws:
IOException
-
seekToCheckpoint
- Specified by:
seekToCheckpointin interfaceValueInputStream<BooleanStreamCheckpoint>- Throws:
IOException
-
skip
- Specified by:
skipin interfaceValueInputStream<BooleanStreamCheckpoint>- Throws:
IOException
-
countBitsSet
- Throws:
IOException
-
getSetBits
Gets a vector of bytes set to 1 if the bit is set.- Throws:
IOException
-
getSetBits
Sets the vector element to 1 if the bit is set.- Throws:
IOException
-
getUnsetBits
Sets the vector element to true if the bit is not set.- Throws:
IOException
-