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

public class DefaultArrayVector extends AbstractColumnVector
ColumnVector implementation for array type data.
  • 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 of ColumnVector for 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 given rowId. The return value is undefined and can be anything, if the slot for rowId is null.
      Specified by:
      getArray in interface io.delta.kernel.data.ColumnVector
      Overrides:
      getArray in class AbstractColumnVector
      Parameters:
      rowId -
      Returns: