Class NullabilityHolder
java.lang.Object
org.apache.iceberg.arrow.vectorized.NullabilityHolder
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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()
-
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()
-