Class ListColumnReader


  • public final class ListColumnReader
    extends Object
    • Method Detail

      • 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