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

Method ExecBatch

cpp/src/arrow/testing/generator.cc:280–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 }
279
280 Result<::arrow::compute::ExecBatch> ExecBatch(int64_t num_rows) override {
281 std::vector<Datum> values;
282 values.reserve(generators_.size());
283 for (auto& field : generators_) {
284 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<Array> arr, field.gen->Generate(num_rows));
285 values.push_back(std::move(arr));
286 }
287 return ::arrow::compute::ExecBatch(std::move(values), num_rows);
288 }
289
290 Result<std::vector<::arrow::compute::ExecBatch>> ExecBatches(int64_t rows_per_batch,
291 int num_batches) override {

Callers

nothing calls this directly

Calls 6

push_backMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.50
ExecBatchFunction · 0.50
reserveMethod · 0.45
sizeMethod · 0.45
GenerateMethod · 0.45

Tested by

no test coverage detected