Class NullabilityHolder
- java.lang.Object
-
- org.apache.iceberg.arrow.vectorized.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 methodssetNull(int)
,setNulls(int, int)
,setNotNull(int)
andsetNotNulls(int, int)
are invoked with monotonically increasing values for the index parameter.
-
-
Constructor Summary
Constructors 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()
-
-
-
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()
-
-