Package io.delta.kernel.internal.data
Class SelectionColumnVector
Object
io.delta.kernel.internal.data.SelectionColumnVector
- All Implemented Interfaces:
ColumnVector,AutoCloseable
The selection vector for a columnar batch as a boolean
ColumnVector.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Cleans up memory for this column vector.booleangetBoolean(int rowId) Returns the boolean type value forrowId.intgetSize()booleanisNullAt(int rowId)
-
Constructor Details
-
SelectionColumnVector
-
-
Method Details
-
getDataType
- Specified by:
getDataTypein interfaceColumnVector- Returns:
- the data type of this column vector.
-
getSize
public int getSize()- Specified by:
getSizein interfaceColumnVector- Returns:
- number of elements in the vector
-
close
public void close()Description copied from interface:ColumnVectorCleans up memory for this column vector. The column vector is not usable after this.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceColumnVector
-
isNullAt
public boolean isNullAt(int rowId) - Specified by:
isNullAtin interfaceColumnVector- Returns:
- whether the value at
rowIdis NULL.
-
getBoolean
public boolean getBoolean(int rowId) Description copied from interface:ColumnVectorReturns the boolean type value forrowId. The return value is undefined and can be anything, if the slot forrowIdis null.- Specified by:
getBooleanin interfaceColumnVector- Returns:
- Boolean value at the given row id
-