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

Method Make

cpp/src/arrow/record_batch.cc:222–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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