presto-spi/src/main/java/io/prestosql/spi/type/AbstractIntType.java/AbstractIntType/appendTo
class AbstractIntType:    @Override
    public final void appendTo(Block block, int position, BlockBuilder blockBuilder)
    {
        if (block.isNull(position)) {
            blockBuilder.appendNull();
        }
        else {
            blockBuilder.writeInt(block.getInt(position, 0)).closeEntry();
        }
    }