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

Function ImportDeviceRecordBatch

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

Source from the content-addressed store, hash-verified

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