presto-spi/src/main/java/io/prestosql/spi/block/SingleMapBlockWriter.java/SingleMapBlockWriter/writeShort
class SingleMapBlockWriter:    @Override
    public BlockBuilder writeShort(int value)
    {
        if (writeToValueNext) {
            valueBlockBuilder.writeShort(value);
        }
        else {
            keyBlockBuilder.writeShort(value);
        }
        return this;
    }