/** * Set the element at the given index to the given value. * * @param index position of element * @param value BigDecimal containing decimal value. */ public void set(int index, BigDecimal value) { BitVectorHelper.setValidityBitToOne(validityBuffer, index); DecimalUtility.checkPrecisionAndScale(value, precision, scale); DecimalUtility.writeBigDecimalToArrowBuf(value, valueBuffer, index); }