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

Function ImportDeviceArray

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

Source from the content-addressed store, hash-verified

1994}
1995
1996Result<std::shared_ptr<Array>> ImportDeviceArray(struct ArrowDeviceArray* array,
1997 std::shared_ptr<DataType> type,
1998 const DeviceMemoryMapper& mapper) {
1999 ArrayImporter importer(type);
2000 RETURN_NOT_OK(importer.Import(array, mapper));
2001 return importer.MakeArray();
2002}
2003
2004Result<std::shared_ptr<Array>> ImportDeviceArray(struct ArrowDeviceArray* array,
2005 struct ArrowSchema* type,

Callers 4

TestWithArrayFactoryMethod · 0.85
TestWithArrayFactoryMethod · 0.85
TEST_FFunction · 0.85
ImportArrayInternalMethod · 0.85

Calls 6

ArrowArrayReleaseFunction · 0.85
ImportTypeFunction · 0.70
ImportMethod · 0.45
MakeArrayMethod · 0.45
okMethod · 0.45
statusMethod · 0.45

Tested by 3

TestWithArrayFactoryMethod · 0.68
TestWithArrayFactoryMethod · 0.68
TEST_FFunction · 0.68