Class DefaultLongVector

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

public class DefaultLongVector extends AbstractColumnVector
ColumnVector implementation for long, timestamp or timestamp_ntz type data.
  • Constructor Details

    • DefaultLongVector

      public DefaultLongVector(io.delta.kernel.types.DataType dataType, int size, Optional<boolean[]> nullability, long[] values)
      Create an instance of ColumnVector for long 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

    • getLong

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