presto-spi/src/main/java/io/prestosql/spi/type/BooleanType.java/BooleanType/writeBoolean
class BooleanType:    @Override
    public void writeBoolean(BlockBuilder blockBuilder, boolean value)
    {
        blockBuilder.writeByte(value ? 1 : 0).closeEntry();
    }