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

Function ImportDeviceRecordBatch

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

Source from the content-addressed store, hash-verified

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