presto-spi/src/main/java/io/prestosql/spi/type/BooleanType.java/BooleanType/hash
class BooleanType:    @Override
    public long hash(Block block, int position)
    {
        boolean value = block.getByte(position, 0) != 0;
        return value ? 1231 : 1237;
    }