Class EmptyValuePopulator

java.lang.Object
org.apache.arrow.vector.complex.EmptyValuePopulator

public class EmptyValuePopulator extends Object
A helper class that is used to track and populate empty values in repeated value vectors.
  • Constructor Details

    • EmptyValuePopulator

      public EmptyValuePopulator(UInt4Vector offsets)
  • Method Details

    • populate

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