public void readBinarys(int total, ColumnVector c, int rowId, int level, VectorizedValuesReader data) { int left = total; while (left > 0) { if (this.currentCount == 0) this.readNextGroup(); int n = Math.min(left, this.currentCount); switch (mode) { case RLE: if (currentValue == level) { data.readBinary(n, c, rowId); } else { c.putNulls(rowId, n); } break; case PACKED: for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { data.readBinary(1, c, rowId + i); } else { c.putNull(rowId + i); } } break; } rowId += n; left -= n; currentCount -= n; } }
public void readBooleans(int total, ColumnVector c, int rowId, int level, VectorizedValuesReader data) { int left = total; while (left > 0) { if (this.currentCount == 0) this.readNextGroup(); int n = Math.min(left, this.currentCount); switch (mode) { case RLE: if (currentValue == level) { data.readBooleans(n, c, rowId); } else { c.putNulls(rowId, n); } break; case PACKED: for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putBoolean(rowId + i, data.readBoolean()); } else { c.putNull(rowId + i); } } break; } rowId += n; left -= n; currentCount -= n; } }
public void readBytes(int total, ColumnVector c, int rowId, int level, VectorizedValuesReader data) { int left = total; while (left > 0) { if (this.currentCount == 0) this.readNextGroup(); int n = Math.min(left, this.currentCount); switch (mode) { case RLE: if (currentValue == level) { data.readBytes(n, c, rowId); } else { c.putNulls(rowId, n); } break; case PACKED: for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putByte(rowId + i, data.readByte()); } else { c.putNull(rowId + i); } } break; } rowId += n; left -= n; currentCount -= n; } }
public void readFloats(int total, ColumnVector c, int rowId, int level, VectorizedValuesReader data) { int left = total; while (left > 0) { if (this.currentCount == 0) this.readNextGroup(); int n = Math.min(left, this.currentCount); switch (mode) { case RLE: if (currentValue == level) { data.readFloats(n, c, rowId); } else { c.putNulls(rowId, n); } break; case PACKED: for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putFloat(rowId + i, data.readFloat()); } else { c.putNull(rowId + i); } } break; } rowId += n; left -= n; currentCount -= n; } }
public void readDoubles(int total, ColumnVector c, int rowId, int level, VectorizedValuesReader data) { int left = total; while (left > 0) { if (this.currentCount == 0) this.readNextGroup(); int n = Math.min(left, this.currentCount); switch (mode) { case RLE: if (currentValue == level) { data.readDoubles(n, c, rowId); } else { c.putNulls(rowId, n); } break; case PACKED: for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putDouble(rowId + i, data.readDouble()); } else { c.putNull(rowId + i); } } break; } rowId += n; left -= n; currentCount -= n; } }
case RLE: if (currentValue == level) { data.readIntegers(n, values, rowId); } else { nulls.putNulls(rowId, n); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { values.putInt(rowId + i, data.readInteger()); } else { nulls.putNull(rowId + i);
if (currentValue == level) { for (int i = 0; i < n; i++) { c.putShort(rowId + i, (short)data.readInteger()); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putShort(rowId + i, (short)data.readInteger()); } else { c.putNull(rowId + i);
case RLE: if (currentValue == level) { data.readIntegers(n, values, rowId); } else { nulls.putNulls(rowId, n); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { values.putInt(rowId + i, data.readInteger()); } else { nulls.putNull(rowId + i);
case RLE: if (currentValue == level) { data.readFloats(n, c, rowId); } else { c.putNulls(rowId, n); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putFloat(rowId + i, data.readFloat()); } else { c.putNull(rowId + i);
case RLE: if (currentValue == level) { data.readDoubles(n, c, rowId); } else { c.putNulls(rowId, n); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putDouble(rowId + i, data.readDouble()); } else { c.putNull(rowId + i);
if (currentValue == level) { for (int i = 0; i < n; i++) { c.putShort(rowId + i, (short)data.readInteger()); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putShort(rowId + i, (short)data.readInteger()); } else { c.putNull(rowId + i);
case RLE: if (currentValue == level) { data.readIntegers(n, values, rowId); } else { nulls.putNulls(rowId, n); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { values.putInt(rowId + i, data.readInteger()); } else { nulls.putNull(rowId + i);
case RLE: if (currentValue == level) { data.readFloats(n, c, rowId); } else { c.putNulls(rowId, n); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putFloat(rowId + i, data.readFloat()); } else { c.putNull(rowId + i);
case RLE: if (currentValue == level) { data.readDoubles(n, c, rowId); } else { c.putNulls(rowId, n); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putDouble(rowId + i, data.readDouble()); } else { c.putNull(rowId + i);
case RLE: if (currentValue == level) { data.readBooleans(n, c, rowId); } else { c.putNulls(rowId, n); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putBoolean(rowId + i, data.readBoolean()); } else { c.putNull(rowId + i);
case RLE: if (currentValue == level) { data.readBinary(n, c, rowId); } else { c.putNulls(rowId, n); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { data.readBinary(1, c, rowId + i); } else { c.putNull(rowId + i);
if (currentValue == level) { for (int i = 0; i < n; i++) { c.putShort(rowId + i, (short)data.readInteger()); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putShort(rowId + i, (short)data.readInteger()); } else { c.putNull(rowId + i);
case RLE: if (currentValue == level) { data.readIntegers(n, c, rowId); } else { c.putNulls(rowId, n); for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putInt(rowId + i, data.readInteger()); } else { c.putNull(rowId + i);
public void readFloats(int total, ColumnVector c, int rowId, int level, VectorizedValuesReader data) { int left = total; while (left > 0) { if (this.currentCount == 0) this.readNextGroup(); int n = Math.min(left, this.currentCount); switch (mode) { case RLE: if (currentValue == level) { data.readFloats(n, c, rowId); } else { c.putNulls(rowId, n); } break; case PACKED: for (int i = 0; i < n; ++i) { if (currentBuffer[currentBufferIdx++] == level) { c.putFloat(rowId + i, data.readFloat()); } else { c.putNull(rowId + i); } } break; } rowId += n; left -= n; currentCount -= n; } }