/** * Set the element at the given index to the given value. * * @param index position of element * @param value value of element */ public void set(int index, long value) { BitVectorHelper.setValidityBitToOne(validityBuffer, index); setValue(index, value); }
/** * Set the element at the given index to the value set in data holder. * * @param index position of element * @param holder data holder for value of element */ public void set(int index, DateMilliHolder holder) { BitVectorHelper.setValidityBitToOne(validityBuffer, index); setValue(index, holder.value); }
/** * Set the element at the given index to the value set in data holder. * If the value in holder is not indicated as set, element in the * at the given index will be null. * * @param index position of element * @param holder nullable data holder for value of element */ public void set(int index, NullableDateMilliHolder holder) throws IllegalArgumentException { if (holder.isSet < 0) { throw new IllegalArgumentException(); } else if (holder.isSet > 0) { BitVectorHelper.setValidityBitToOne(validityBuffer, index); setValue(index, holder.value); } else { BitVectorHelper.setValidityBit(validityBuffer, index, 0); } }