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

Method Make

cpp/src/arrow/record_batch.cc:221–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 : schema_(std::move(schema)), num_rows_(num_rows) {}
220
221std::shared_ptr<RecordBatch> RecordBatch::Make(
222 std::shared_ptr<Schema> schema, int64_t num_rows,
223 std::vector<std::shared_ptr<Array>> columns,
224 std::shared_ptr<Device::SyncEvent> sync_event) {
225 DCHECK_EQ(schema->num_fields(), static_cast<int>(columns.size()));
226 return std::make_shared<SimpleRecordBatch>(std::move(schema), num_rows,
227 std::move(columns), std::move(sync_event));
228}
229
230std::shared_ptr<RecordBatch> RecordBatch::Make(
231 std::shared_ptr<Schema> schema, int64_t num_rows,

Callers

nothing calls this directly

Calls 4

InvalidFunction · 0.70
num_fieldsMethod · 0.45
sizeMethod · 0.45
schemaMethod · 0.45

Tested by

no test coverage detected