Class DefaultBinaryVector

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

public class DefaultBinaryVector extends AbstractColumnVector
ColumnVector implementation for binary type data.
  • Constructor Details

    • DefaultBinaryVector

      public DefaultBinaryVector(io.delta.kernel.types.DataType dataType, int size, byte[][] values)
      Create an instance of ColumnVector for binary type.
      Parameters:
      size - number of elements in the vector.
      values - column vector values.
  • Method Details

    • isNullAt

      public boolean isNullAt(int rowId)
      Description copied from class: AbstractColumnVector
      Is the value at given rowId index is null?
      Specified by:
      isNullAt in interface io.delta.kernel.data.ColumnVector
      Overrides:
      isNullAt in class AbstractColumnVector
      Parameters:
      rowId -
      Returns:
    • getString

      public String getString(int rowId)
      Get the value at given rowId. The return value is undefined and can be anything, if the slot for rowId is null. The error check on rowId explicitly skipped for performance reasons.
      Specified by:
      getString in interface io.delta.kernel.data.ColumnVector
      Overrides:
      getString in class AbstractColumnVector
      Parameters:
      rowId -
      Returns:
    • getBinary

      public byte[] getBinary(int rowId)
      Get the value at given rowId. The return value is undefined and can be anything, if the slot for rowId is null. The error check on rowId explicitly skipped for performance reasons.
      Specified by:
      getBinary in interface io.delta.kernel.data.ColumnVector
      Overrides:
      getBinary in class AbstractColumnVector
      Parameters:
      rowId -
      Returns: