Class ShortColumnAdapter

java.lang.Object
io.trino.parquet.reader.flat.ShortColumnAdapter
All Implemented Interfaces:
ColumnAdapter<short[]>

public class ShortColumnAdapter extends Object implements ColumnAdapter<short[]>
  • Field Details

  • Constructor Details

    • ShortColumnAdapter

      public ShortColumnAdapter()
  • Method Details

    • createBuffer

      public short[] createBuffer(int size)
      Specified by:
      createBuffer in interface ColumnAdapter<short[]>
    • createNonNullBlock

      public Block createNonNullBlock(short[] values)
      Specified by:
      createNonNullBlock in interface ColumnAdapter<short[]>
    • createNullableBlock

      public Block createNullableBlock(boolean[] nulls, short[] values)
      Specified by:
      createNullableBlock in interface ColumnAdapter<short[]>
    • copyValue

      public void copyValue(short[] source, int sourceIndex, short[] destination, int destinationIndex)
      Specified by:
      copyValue in interface ColumnAdapter<short[]>
    • decodeDictionaryIds

      public void decodeDictionaryIds(short[] values, int offset, int length, int[] ids, short[] dictionary)
      Specified by:
      decodeDictionaryIds in interface ColumnAdapter<short[]>
    • getSizeInBytes

      public long getSizeInBytes(short[] values)
      Specified by:
      getSizeInBytes in interface ColumnAdapter<short[]>
    • merge

      public short[] merge(List<short[]> buffers)
      Specified by:
      merge in interface ColumnAdapter<short[]>