Class ByteColumnAdapter

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

public class ByteColumnAdapter extends Object implements ColumnAdapter<byte[]>
  • Field Details

  • Constructor Details

    • ByteColumnAdapter

      public ByteColumnAdapter()
  • Method Details

    • createBuffer

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

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

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

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

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

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

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