Class ListColumnReader

java.lang.Object
io.trino.parquet.reader.ListColumnReader

public final class ListColumnReader extends Object
  • Method Details

    • calculateCollectionOffsets

      public static ListColumnReader.BlockPositions calculateCollectionOffsets(Field field, int[] definitionLevels, int[] repetitionLevels)
      Each collection (Array or Map) has four variants of presence: 1) Collection is not defined, because one of it's optional parent fields is null 2) Collection is null 3) Collection is defined but empty 4) Collection is defined and not empty. In this case offset value is increased by the number of elements in that collection