MCPcopy Create free account
hub / github.com/apache/arrow / InitEncoder

Method InitEncoder

cpp/src/arrow/acero/hash_join_dict.cc:518–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518void 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
534Status HashJoinDictBuildMulti::EncodeBatch(
535 size_t thread_index, const SchemaProjectionMaps<HashJoinProjection>& proj_map,

Callers

nothing calls this directly

Calls 3

num_colsMethod · 0.80
data_typeMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected