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

Function ImportRecordBatch

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

Source from the content-addressed store, hash-verified

1974}
1975
1976Result<std::shared_ptr<RecordBatch>> ImportRecordBatch(struct ArrowArray* array,
1977 std::shared_ptr<Schema> schema) {
1978 auto type = struct_(schema->fields());
1979 ArrayImporter importer(type);
1980 RETURN_NOT_OK(importer.Import(array));
1981 return importer.MakeRecordBatch(std::move(schema));
1982}
1983
1984Result<std::shared_ptr<RecordBatch>> ImportRecordBatch(struct ArrowArray* array,
1985 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