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

public class DefaultByteVector extends AbstractColumnVector
ColumnVector implementation for byte type data.
  • Constructor Details

    • DefaultByteVector

      public DefaultByteVector(int size, Optional<boolean[]> nullability, byte[] values)
      Create an instance of ColumnVector for 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 given rowId. The return value is undefined and can be anything, if the slot for rowId is null.
      Specified by:
      getByte in interface io.delta.kernel.data.ColumnVector
      Overrides:
      getByte in class AbstractColumnVector
      Parameters:
      rowId -
      Returns: