public final int appendInts(int length, int[] src, int offset) { reserve(elementsAppended + length); int result = elementsAppended; putInts(elementsAppended, length, src, offset); elementsAppended += length; return result; }
@Override public void readIntegers(int total, ColumnVector c, int rowId) { int left = total; while (left > 0) { if (this.currentCount == 0) this.readNextGroup(); int n = Math.min(left, this.currentCount); switch (mode) { case RLE: c.putInts(rowId, n, currentValue); break; case PACKED: c.putInts(rowId, n, currentBuffer, currentBufferIdx); currentBufferIdx += n; break; } rowId += n; left -= n; currentCount -= n; } }
public final int appendInts(int count, int v) { reserve(elementsAppended + count); int result = elementsAppended; putInts(elementsAppended, count, v); elementsAppended += count; return result; }
public void putInts(int rowId, int count, int[] src, int srcIndex) { vector.putInts(rowId, count, src, srcIndex); }
public void putInts(int rowId, int count, int value) { vector.putInts(rowId, count, value); }
col.putShorts(0, capacity, row.getShort(fieldIdx)); } else if (t == DataTypes.IntegerType) { col.putInts(0, capacity, row.getInt(fieldIdx)); } else if (t == DataTypes.LongType) { col.putLongs(0, capacity, row.getLong(fieldIdx)); Decimal d = row.getDecimal(fieldIdx, dt.precision(), dt.scale()); if (dt.precision() <= Decimal.MAX_INT_DIGITS()) { col.putInts(0, capacity, (int)d.toUnscaledLong()); } else if (dt.precision() <= Decimal.MAX_LONG_DIGITS()) { col.putLongs(0, capacity, d.toUnscaledLong()); col.getChildColumn(0).putInts(0, capacity, c.months); col.getChildColumn(1).putLongs(0, capacity, c.microseconds); } else if (t instanceof DateType) { col.putInts(0, capacity, row.getInt(fieldIdx)); } else if (t instanceof TimestampType) { col.putLongs(0, capacity, row.getLong(fieldIdx));
public final int appendInts(int length, int[] src, int offset) { reserve(elementsAppended + length); int result = elementsAppended; putInts(elementsAppended, length, src, offset); elementsAppended += length; return result; }
@Override public void readIntegers(int total, ColumnVector c, int rowId) { int left = total; while (left > 0) { if (this.currentCount == 0) this.readNextGroup(); int n = Math.min(left, this.currentCount); switch (mode) { case RLE: c.putInts(rowId, n, currentValue); break; case PACKED: c.putInts(rowId, n, currentBuffer, currentBufferIdx); currentBufferIdx += n; break; } rowId += n; left -= n; currentCount -= n; } }
public final int appendInts(int count, int v) { reserve(elementsAppended + count); int result = elementsAppended; putInts(elementsAppended, count, v); elementsAppended += count; return result; }
col.putShorts(0, capacity, row.getShort(fieldIdx)); } else if (t == DataTypes.IntegerType) { col.putInts(0, capacity, row.getInt(fieldIdx)); } else if (t == DataTypes.LongType) { col.putLongs(0, capacity, row.getLong(fieldIdx)); Decimal d = row.getDecimal(fieldIdx, dt.precision(), dt.scale()); if (dt.precision() <= Decimal.MAX_INT_DIGITS()) { col.putInts(0, capacity, (int)d.toUnscaledLong()); } else if (dt.precision() <= Decimal.MAX_LONG_DIGITS()) { col.putLongs(0, capacity, d.toUnscaledLong()); col.getChildColumn(0).putInts(0, capacity, c.months); col.getChildColumn(1).putLongs(0, capacity, c.microseconds); } else if (t instanceof DateType) { col.putInts(0, capacity, row.getInt(fieldIdx)); } else if (t instanceof TimestampType) { col.putLongs(0, capacity, row.getLong(fieldIdx));