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

Method TableGenerator

cpp/src/arrow/acero/source_node.cc:337–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335 }
336
337 static arrow::AsyncGenerator<std::optional<ExecBatch>> TableGenerator(
338 const Table& table, const int64_t batch_size) {
339 auto batches = ConvertTableToExecBatches(table, batch_size);
340 auto opt_batches =
341 MapVector([](ExecBatch batch) { return std::make_optional(std::move(batch)); },
342 std::move(batches));
343 AsyncGenerator<std::optional<ExecBatch>> gen;
344 gen = MakeVectorGenerator(std::move(opt_batches));
345 return gen;
346 }
347
348 static std::vector<ExecBatch> ConvertTableToExecBatches(const Table& table,
349 const int64_t batch_size) {

Callers

nothing calls this directly

Calls 2

MapVectorFunction · 0.85
MakeVectorGeneratorFunction · 0.85

Tested by

no test coverage detected