Class DefaultByteVector
Object
io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
io.delta.kernel.defaults.internal.data.vector.DefaultByteVector
- All Implemented Interfaces:
io.delta.kernel.data.ColumnVector,AutoCloseable
ColumnVector implementation for byte type data.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultByteVector(int size, Optional<boolean[]> nullability, byte[] values) Create an instance ofColumnVectorfor byte type. -
Method Summary
Methods inherited from class io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
close, getArray, getBinary, getBoolean, getDataType, getDecimal, getDouble, getFloat, getInt, getLong, getMap, getShort, getSize, getString, isNullAtMethods 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
-
DefaultByteVector
Create an instance ofColumnVectorfor byte type.- Parameters:
size- number of elements in the vector.nullability- Optional array of nullability value for each element in the vector. All values in the vector are considered non-null when parameter is empty.values- column vector values.
-
-
Method Details
-
getByte
public byte getByte(int rowId) Get the value at givenrowId. The return value is undefined and can be anything, if the slot forrowIdis null.- Specified by:
getBytein interfaceio.delta.kernel.data.ColumnVector- Overrides:
getBytein classAbstractColumnVector- Parameters:
rowId-- Returns:
-