Class ListColumnReader

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

public final class ListColumnReader extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    calculateCollectionOffsets(Field field, it.unimi.dsi.fastutil.ints.IntList offsets, it.unimi.dsi.fastutil.booleans.BooleanList collectionIsNull, 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • calculateCollectionOffsets

      public static void calculateCollectionOffsets(Field field, it.unimi.dsi.fastutil.ints.IntList offsets, it.unimi.dsi.fastutil.booleans.BooleanList collectionIsNull, 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