Class NullabilityHolder

java.lang.Object
org.apache.iceberg.arrow.vectorized.NullabilityHolder

public class NullabilityHolder extends Object
Instances of this class simply track whether a value at an index is null. For simplicity and performance, it is expected that various setter methods setNull(int), setNulls(int, int), setNotNull(int) and setNotNulls(int, int) are invoked with monotonically increasing values for the index parameter.
  • Constructor Details

    • NullabilityHolder

      public NullabilityHolder(int size)
  • Method Details

    • size

      public int size()
    • setNull

      public void setNull(int index)
    • setNotNull

      public void setNotNull(int index)
    • setNulls

      public void setNulls(int startIndex, int num)
    • setNotNulls

      public void setNotNulls(int startIndex, int num)
    • isNullAt

      public byte isNullAt(int index)
      Returns 1 if null, 0 otherwise.
    • hasNulls

      public boolean hasNulls()
    • numNulls

      public int numNulls()
    • reset

      public void reset()