MCPcopy Create free account
hub / github.com/apache/impala / FillVirtualRowIdColumn

Method FillVirtualRowIdColumn

be/src/exec/orc/orc-column-readers.cc:545–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545void OrcStructReader::FillVirtualRowIdColumn(ScratchTupleBatch* scratch_batch,
546 int scratch_batch_idx, int num_rows) {
547 DCHECK(scanner_->file_position_ != nullptr);
548 int tuple_size = OrcColumnReader::scanner_->tuple_byte_size();
549 uint8_t* first_tuple = scratch_batch->tuple_mem + scratch_batch_idx * tuple_size;
550 int64_t* first_slot = reinterpret_cast<Tuple*>(first_tuple)->GetBigIntSlot(
551 scanner_->file_position_->tuple_offset());
552 StrideWriter<int64_t> out{first_slot, tuple_size};
553 for (int i = 0; i < num_rows; ++i) {
554 *out.Advance() = file_row_idx_++;
555 }
556}
557
558Status OrcStructReader::ReadValueBatch(int row_idx, ScratchTupleBatch* scratch_batch,
559 MemPool* pool, int scratch_batch_idx) {

Callers

nothing calls this directly

Calls 4

GetBigIntSlotMethod · 0.80
tuple_offsetMethod · 0.80
tuple_byte_sizeMethod · 0.45
AdvanceMethod · 0.45

Tested by

no test coverage detected