Class DefaultDecimalVector

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

public class DefaultDecimalVector extends AbstractColumnVector
ColumnVector implementation for decimal type data.
  • Constructor Details

    • DefaultDecimalVector

      public DefaultDecimalVector(io.delta.kernel.types.DataType dataType, int size, BigDecimal[] values)
      Create an instance of ColumnVector for decimal 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:
    • getDecimal

      public BigDecimal getDecimal(int rowId)
      Specified by:
      getDecimal in interface io.delta.kernel.data.ColumnVector
      Overrides:
      getDecimal in class AbstractColumnVector