Class DefaultArrayVector
Object
io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
io.delta.kernel.defaults.internal.data.vector.DefaultArrayVector
- All Implemented Interfaces:
io.delta.kernel.data.ColumnVector,AutoCloseable
ColumnVector implementation for array type data.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultArrayVector(int size, io.delta.kernel.types.DataType type, Optional<boolean[]> nullability, int[] offsets, io.delta.kernel.data.ColumnVector elementVector) Create an instance ofColumnVectorfor array type. -
Method Summary
Modifier and TypeMethodDescriptionio.delta.kernel.data.ArrayValuegetArray(int rowId) Get the value at givenrowId.Methods inherited from class io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
close, getBinary, getBoolean, getByte, 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
-
DefaultArrayVector
public DefaultArrayVector(int size, io.delta.kernel.types.DataType type, Optional<boolean[]> nullability, int[] offsets, io.delta.kernel.data.ColumnVector elementVector) Create an instance ofColumnVectorfor array 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.offsets- Offsets into element vector on where the index of particular row values start and end.elementVector- Vector containing the array elements.
-
-
Method Details
-
getArray
public io.delta.kernel.data.ArrayValue getArray(int rowId) Get the value at givenrowId. The return value is undefined and can be anything, if the slot forrowIdis null.- Specified by:
getArrayin interfaceio.delta.kernel.data.ColumnVector- Overrides:
getArrayin classAbstractColumnVector- Parameters:
rowId-- Returns:
-