presto-rcfile/src/main/java/io/prestosql/rcfile/binary/ShortEncoding.java/ShortEncoding/encodeColumn
class ShortEncoding:    @Override
    public void encodeColumn(Block block, SliceOutput output, EncodeOutput encodeOutput)
    {
        for (int position = 0; position < block.getPositionCount(); position++) {
            if (!block.isNull(position)) {
                output.writeShort(Short.reverseBytes((short) type.getLong(block, position)));
            }
            encodeOutput.closeEntry();
        }
    }