Class DefaultMapVector

Object
io.delta.kernel.defaults.internal.data.vector.AbstractColumnVector
io.delta.kernel.defaults.internal.data.vector.DefaultMapVector
All Implemented Interfaces:
io.delta.kernel.data.ColumnVector, AutoCloseable

public class DefaultMapVector extends AbstractColumnVector
ColumnVector implementation for map type data.
  • Constructor Details

    • DefaultMapVector

      public DefaultMapVector(int size, io.delta.kernel.types.DataType type, Optional<boolean[]> nullability, int[] offsets, io.delta.kernel.data.ColumnVector keyVector, io.delta.kernel.data.ColumnVector valueVector)
      Create an instance of ColumnVector for map 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 key and value column vectors on where the index of particular row values start and end.
      keyVector - Vector containing the `key` values from the kv map.
      valueVector - Vector containing the `value` values from the kv map.
  • Method Details

    • getMap

      public io.delta.kernel.data.MapValue getMap(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:
      getMap in interface io.delta.kernel.data.ColumnVector
      Overrides:
      getMap in class AbstractColumnVector
      Parameters:
      rowId -
      Returns: