@Override protected void _setLong(int index, long value) { setLong(index, value); }
private void setValue(int index, long value) { valueBuffer.setLong(index * TYPE_WIDTH, value); }
protected void setValue(int index, long value) { valueBuffer.setLong(index * TYPE_WIDTH, value); }
private void setValue(int index, long value) { valueBuffer.setLong(index * TYPE_WIDTH, value); }
public void set(int index, long value) { dataBuffer.setLong(index * TYPE_WIDTH, value); }
private void setValue(int index, long value) { valueBuffer.setLong(index * TYPE_WIDTH, value); }
private void setValue(int index, long value) { valueBuffer.setLong(index * TYPE_WIDTH, value); }
private void setValue(int index, long value) { valueBuffer.setLong(index * TYPE_WIDTH, value); }
public void setSafe(int index, long value) { while(index >= getValueCapacity()) { reAlloc(); } dataBuffer.setLong(index * TYPE_WIDTH, value); }
/** * Copy a cell value from a particular index in source vector to a particular * position in this vector. * * @param fromIndex position to copy from in source vector * @param thisIndex position to copy to in this vector * @param from source vector */ public void copyFrom(int fromIndex, int thisIndex, TimeStampVector from) { BitVectorHelper.setValidityBit(validityBuffer, thisIndex, from.isSet(fromIndex)); final long value = from.valueBuffer.getLong(fromIndex * TYPE_WIDTH); valueBuffer.setLong(thisIndex * TYPE_WIDTH, value); }
/** * Copy a cell value from a particular index in source vector to a particular * position in this vector. * * @param fromIndex position to copy from in source vector * @param thisIndex position to copy to in this vector * @param from source vector */ public void copyFrom(int fromIndex, int thisIndex, DateMilliVector from) { BitVectorHelper.setValidityBit(validityBuffer, thisIndex, from.isSet(fromIndex)); final long value = from.valueBuffer.getLong(fromIndex * TYPE_WIDTH); valueBuffer.setLong(thisIndex * TYPE_WIDTH, value); }
/** * Copy a cell value from a particular index in source vector to a particular * position in this vector. * * @param fromIndex position to copy from in source vector * @param thisIndex position to copy to in this vector * @param from source vector */ public void copyFrom(int fromIndex, int thisIndex, BigIntVector from) { BitVectorHelper.setValidityBit(validityBuffer, thisIndex, from.isSet(fromIndex)); final long value = from.valueBuffer.getLong(fromIndex * TYPE_WIDTH); valueBuffer.setLong(thisIndex * TYPE_WIDTH, value); }
public void copyFrom(int fromIndex, int thisIndex, UInt8Vector from) { BitVectorHelper.setValidityBit(validityBuffer, thisIndex, from.isSet(fromIndex)); final long value = from.valueBuffer.getLong(fromIndex * TYPE_WIDTH); valueBuffer.setLong(thisIndex * TYPE_WIDTH, value); }
/** * Copy a cell value from a particular index in source vector to a particular * position in this vector. * * @param fromIndex position to copy from in source vector * @param thisIndex position to copy to in this vector * @param from source vector */ public void copyFrom(int fromIndex, int thisIndex, TimeMicroVector from) { BitVectorHelper.setValidityBit(validityBuffer, thisIndex, from.isSet(fromIndex)); final long value = from.valueBuffer.getLong(fromIndex * TYPE_WIDTH); valueBuffer.setLong(thisIndex * TYPE_WIDTH, value); }
/** * Copy a cell value from a particular index in source vector to a particular * position in this vector. * * @param fromIndex position to copy from in source vector * @param thisIndex position to copy to in this vector * @param from source vector */ public void copyFrom(int fromIndex, int thisIndex, TimeNanoVector from) { BitVectorHelper.setValidityBit(validityBuffer, thisIndex, from.isSet(fromIndex)); final long value = from.valueBuffer.getLong(fromIndex * TYPE_WIDTH); valueBuffer.setLong(thisIndex * TYPE_WIDTH, value); }
@Override public void addLong(long value) { /* set the bytes in LE format in the buffer of decimal vector */ buffer.setLong(0, value); if (value < 0) { for (int i = 2; i < 4; i++) { buffer.setInt(i * 4, 0xFFFFFFFF); } } else { buffer.setZero(8, 8); } holder.buffer = buffer; writer.write(holder); } }