Codegen for materialized parsed data into tuples.
| 76 | |
| 77 | // Codegen for materialized parsed data into tuples. |
| 78 | Status HdfsSequenceScanner::Codegen(HdfsScanPlanNode* node, FragmentState* state, |
| 79 | llvm::Function** write_aligned_tuples_fn) { |
| 80 | *write_aligned_tuples_fn = nullptr; |
| 81 | DCHECK(state->ShouldCodegen()); |
| 82 | DCHECK(state->codegen() != nullptr); |
| 83 | llvm::Function* write_complete_tuple_fn; |
| 84 | RETURN_IF_ERROR(CodegenWriteCompleteTuple(node, state, &write_complete_tuple_fn)); |
| 85 | DCHECK(write_complete_tuple_fn != nullptr); |
| 86 | RETURN_IF_ERROR(CodegenWriteAlignedTuples( |
| 87 | node, state, write_complete_tuple_fn, write_aligned_tuples_fn)); |
| 88 | DCHECK(*write_aligned_tuples_fn != nullptr); |
| 89 | return Status::OK(); |
| 90 | } |
| 91 | |
| 92 | Status HdfsSequenceScanner::InitNewRange() { |
| 93 | DCHECK(header_ != nullptr); |
nothing calls this directly
no test coverage detected