presto-orc/src/main/java/io/prestosql/orc/stream/BooleanInputStream.java/BooleanInputStream/nextBit
class BooleanInputStream:    public boolean nextBit()
            throws IOException
    {
        // read more data if necessary
        if (bitsInData == 0) {
            readByte();
        }

        // read bit
        boolean result = (data & HIGH_BIT_MASK) != 0;

        // mark bit consumed
        data <<= 1;
        bitsInData--;

        return result;
    }