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

Method InitEncoder

cpp/src/arrow/acero/hash_join.cc:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97 private:
98 void InitEncoder(int side, HashJoinProjection projection_handle, RowEncoder* encoder) {
99 std::vector<TypeHolder> data_types;
100 int num_cols = schema_[side]->num_cols(projection_handle);
101 data_types.resize(num_cols);
102 for (int icol = 0; icol < num_cols; ++icol) {
103 data_types[icol] = schema_[side]->data_type(projection_handle, icol);
104 }
105 encoder->Init(data_types, ctx_->exec_context());
106 encoder->Clear();
107 }
108
109 Status InitLocalStateIfNeeded(size_t thread_index) {
110 DCHECK_LT(thread_index, local_states_.size());

Callers 1

Calls 6

num_colsMethod · 0.80
resizeMethod · 0.80
exec_contextMethod · 0.80
data_typeMethod · 0.45
InitMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected