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

Function ImportRecordBatch

cpp/src/arrow/c/bridge.cc:1979–1985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1977}
1978
1979Result<std::shared_ptr<RecordBatch>> ImportRecordBatch(struct ArrowArray* array,
1980 std::shared_ptr<Schema> schema) {
1981 auto type = struct_(schema->fields());
1982 ArrayImporter importer(type);
1983 RETURN_NOT_OK(importer.Import(array));
1984 return importer.MakeRecordBatch(std::move(schema));
1985}
1986
1987Result<std::shared_ptr<RecordBatch>> ImportRecordBatch(struct ArrowArray* array,
1988 struct ArrowSchema* schema) {

Callers 6

CheckImportErrorMethod · 0.70
TEST_FFunction · 0.70
TestWithBatchFactoryMethod · 0.70
ExportImportRecordBatchFunction · 0.70

Calls 8

struct_Function · 0.85
ArrowArrayReleaseFunction · 0.85
MakeRecordBatchMethod · 0.80
ImportSchemaFunction · 0.70
fieldsMethod · 0.45
ImportMethod · 0.45
okMethod · 0.45
statusMethod · 0.45

Tested by 3

CheckImportErrorMethod · 0.56
TEST_FFunction · 0.56
TestWithBatchFactoryMethod · 0.56