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

Method InputFinished

cpp/src/arrow/acero/hash_join_node.cc:928–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926 }
927
928 Status InputFinished(ExecNode* input, int total_batches) override {
929 ARROW_DCHECK(std::find(inputs_.begin(), inputs_.end(), input) != inputs_.end());
930 size_t thread_index = plan_->query_context()->GetThreadIndex();
931 int side = (input == inputs_[0]) ? 0 : 1;
932
933 if (batch_count_[side].SetTotal(total_batches)) {
934 if (side == 0) {
935 return OnProbeSideFinished(thread_index);
936 } else {
937 return OnBuildSideFinished(thread_index);
938 }
939 }
940 return Status::OK();
941 }
942
943 Status Init() override {
944 QueryContext* ctx = plan_->query_context();

Callers 1

FinishedCallbackMethod · 0.45

Calls 5

GetThreadIndexMethod · 0.80
query_contextMethod · 0.80
OKFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected