Class DefaultBinaryVector
Object
io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
io.delta.kernel.defaults.internal.data.vector.DefaultBinaryVector
- All Implemented Interfaces:
io.delta.kernel.data.ColumnVector,AutoCloseable
ColumnVector implementation for binary type data.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultBinaryVector(io.delta.kernel.types.DataType dataType, int size, byte[][] values) Create an instance ofColumnVectorfor binary type. -
Method Summary
Methods inherited from class io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
close, getArray, getBoolean, getByte, getDataType, getDecimal, getDouble, getFloat, getInt, getLong, getMap, getShort, getSizeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.delta.kernel.data.ColumnVector
getChild
-
Constructor Details
-
DefaultBinaryVector
public DefaultBinaryVector(io.delta.kernel.types.DataType dataType, int size, byte[][] values) Create an instance ofColumnVectorfor binary type.- Parameters:
size- number of elements in the vector.values- column vector values.
-
-
Method Details
-
isNullAt
public boolean isNullAt(int rowId) Description copied from class:AbstractColumnVectorIs the value at givenrowIdindex is null?- Specified by:
isNullAtin interfaceio.delta.kernel.data.ColumnVector- Overrides:
isNullAtin classAbstractColumnVector- Parameters:
rowId-- Returns:
-
getString
Get the value at givenrowId. The return value is undefined and can be anything, if the slot forrowIdis null. The error check onrowIdexplicitly skipped for performance reasons.- Specified by:
getStringin interfaceio.delta.kernel.data.ColumnVector- Overrides:
getStringin classAbstractColumnVector- Parameters:
rowId-- Returns:
-
getBinary
public byte[] getBinary(int rowId) Get the value at givenrowId. The return value is undefined and can be anything, if the slot forrowIdis null. The error check onrowIdexplicitly skipped for performance reasons.- Specified by:
getBinaryin interfaceio.delta.kernel.data.ColumnVector- Overrides:
getBinaryin classAbstractColumnVector- Parameters:
rowId-- Returns:
-