Class NullabilityHolder

  • public class NullabilityHolder
    extends java.lang.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 Summary

      Constructor Description
      NullabilityHolder​(int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNulls()  
      byte isNullAt​(int index)
      Returns 1 if null, 0 otherwise.
      int numNulls()  
      void reset()  
      void setNotNull​(int index)  
      void setNotNulls​(int startIndex, int num)  
      void setNull​(int index)  
      void setNulls​(int startIndex, int num)  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullabilityHolder

        public NullabilityHolder​(int size)
    • Method Detail

      • 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()