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

Method Sequence

cpp/src/arrow/acero/exec_plan.cc:593–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593Declaration Declaration::Sequence(std::vector<Declaration> decls) {
594 DCHECK(!decls.empty());
595
596 Declaration out = std::move(decls.back());
597 decls.pop_back();
598 auto receiver = &out;
599 while (!decls.empty()) {
600 Declaration input = std::move(decls.back());
601 decls.pop_back();
602
603 receiver->inputs.emplace_back(std::move(input));
604 receiver = &std::get<Declaration>(receiver->inputs.front());
605 }
606 return out;
607}
608
609bool Declaration::IsValid(ExecFactoryRegistry* registry) const {
610 return !this->factory_name.empty() && this->options != nullptr;

Callers

nothing calls this directly

Calls 3

backMethod · 0.80
emplace_backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected