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

Method Init

cpp/src/arrow/acero/asof_join_node.cc:1129–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1127 bool may_rehash);
1128
1129 Status Init() override {
1130 auto inputs = this->inputs();
1131 for (size_t i = 0; i < inputs.size(); i++) {
1132 RETURN_NOT_OK(key_hashers_[i]->Init(plan()->query_context()->exec_context(),
1133 inputs[i]->output_schema()));
1134 ARROW_ASSIGN_OR_RAISE(
1135 auto input_state,
1136 InputState::Make(i, tolerance_, must_hash_, may_rehash_, key_hashers_[i].get(),
1137 inputs[i], this, backpressure_counter_,
1138 inputs[i]->output_schema(), indices_of_on_key_[i],
1139 indices_of_by_key_[i]));
1140 state_.push_back(std::move(input_state));
1141 }
1142
1143 col_index_t dst_offset = 0;
1144 for (auto& state : state_)
1145 dst_offset = state->InitSrcToDstMapping(dst_offset, !!dst_offset);
1146
1147 return Status::OK();
1148 }
1149
1150 virtual ~AsofJoinNode() {
1151#ifdef ARROW_ENABLE_THREADING

Callers

nothing calls this directly

Calls 8

planFunction · 0.85
exec_contextMethod · 0.80
query_contextMethod · 0.80
push_backMethod · 0.80
InitSrcToDstMappingMethod · 0.80
OKFunction · 0.50
sizeMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected