| 516 | } |
| 517 | |
| 518 | void HashJoinDictBuildMulti::InitEncoder( |
| 519 | const SchemaProjectionMaps<HashJoinProjection>& proj_map, RowEncoder* encoder, |
| 520 | ExecContext* ctx) { |
| 521 | int num_cols = proj_map.num_cols(HashJoinProjection::KEY); |
| 522 | std::vector<TypeHolder> data_types(num_cols); |
| 523 | for (int icol = 0; icol < num_cols; ++icol) { |
| 524 | std::shared_ptr<DataType> data_type = |
| 525 | proj_map.data_type(HashJoinProjection::KEY, icol); |
| 526 | if (HashJoinDictBuild::KeyNeedsProcessing(data_type)) { |
| 527 | data_type = HashJoinDictBuild::DataTypeAfterRemapping(); |
| 528 | } |
| 529 | data_types[icol] = data_type; |
| 530 | } |
| 531 | encoder->Init(data_types, ctx); |
| 532 | } |
| 533 | |
| 534 | Status HashJoinDictBuildMulti::EncodeBatch( |
| 535 | size_t thread_index, const SchemaProjectionMaps<HashJoinProjection>& proj_map, |