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

Function ImportDeviceRecordBatch

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

Source from the content-addressed store, hash-verified

2021}
2022
2023Result<std::shared_ptr<RecordBatch>> ImportDeviceRecordBatch(
2024 struct ArrowDeviceArray* array, std::shared_ptr<Schema> schema,
2025 const DeviceMemoryMapper& mapper) {
2026 auto type = struct_(schema->fields());
2027 ArrayImporter importer(type);
2028 RETURN_NOT_OK(importer.Import(array, mapper));
2029 return importer.MakeRecordBatch(std::move(schema));
2030}
2031
2032Result<std::shared_ptr<RecordBatch>> ImportDeviceRecordBatch(
2033 struct ArrowDeviceArray* array, struct ArrowSchema* schema,

Callers 3

TestWithBatchFactoryMethod · 0.85
TEST_FFunction · 0.85

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 2

TestWithBatchFactoryMethod · 0.68
TEST_FFunction · 0.68