Class EmptyValuePopulator

java.lang.Object
org.apache.drill.exec.vector.complex.EmptyValuePopulator

public class EmptyValuePopulator extends Object
Tracks and populate empty values in repeated value vectors.
  • Constructor Details

    • EmptyValuePopulator

      public EmptyValuePopulator(UInt4Vector offsets)
  • Method Details

    • populate

      public void populate(int valueCount)
      Marks all values since the last set as empty. The last set value is obtained from underlying offsets vector.
      Parameters:
      valueCount - the last index (inclusive) in the offsets vector until which empty population takes place. Given in record (not offset) units
      Throws:
      IndexOutOfBoundsException - if lastIndex is negative or greater than offsets capacity.