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

Method MakeBatches

cpp/src/arrow/c/bridge_test.cc:4522–4529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4520 void TearDown() override { ASSERT_EQ(pool_->bytes_allocated(), orig_allocated_); }
4521
4522 RecordBatchVector MakeBatches(std::shared_ptr<Schema> schema, ArrayVector arrays) {
4523 DCHECK_EQ(schema->num_fields(), 1);
4524 RecordBatchVector batches;
4525 for (const auto& array : arrays) {
4526 batches.push_back(RecordBatch::Make(schema, array->length(), {array}));
4527 }
4528 return batches;
4529 }
4530
4531 protected:
4532 MemoryPool* pool_;

Callers

nothing calls this directly

Calls 4

push_backMethod · 0.80
MakeFunction · 0.50
num_fieldsMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected