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

Function VecToItMaker

cpp/src/arrow/acero/options.cc:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53namespace {
54ExecBatchIteratorMaker VecToItMaker(std::vector<ExecBatch> batches) {
55 auto batches_ptr = std::make_shared<std::vector<std::shared_ptr<ExecBatch>>>();
56 batches_ptr->reserve(batches.size());
57 for (auto batch : batches) {
58 batches_ptr->push_back(std::make_shared<ExecBatch>(std::move(batch)));
59 }
60 return
61 [batches_ptr = std::move(batches_ptr)] { return MakeVectorIterator(*batches_ptr); };
62}
63} // namespace
64
65ExecBatchSourceNodeOptions::ExecBatchSourceNodeOptions(

Callers 1

Calls 4

MakeVectorIteratorFunction · 0.85
push_backMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected