| 543 | } |
| 544 | |
| 545 | void 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 | |
| 558 | Status OrcStructReader::ReadValueBatch(int row_idx, ScratchTupleBatch* scratch_batch, |
| 559 | MemPool* pool, int scratch_batch_idx) { |
nothing calls this directly
no test coverage detected