Class CArrowDeviceArrayImporter
[Experimental("ArrowDeviceDataApi")]
public static class CArrowDeviceArrayImporter
- Inheritance
-
CArrowDeviceArrayImporter
- Inherited Members
Methods
ImportArray(CArrowDeviceArray*, IArrowType)
Import C pointer as an IArrowArray.
public static IArrowArray ImportArray(CArrowDeviceArray* ptr, IArrowType type)
Parameters
ptrCArrowDeviceArray*The pointer to the device array being imported
typeIArrowTypeThe type of the array being imported
Returns
- IArrowArray
The imported C# array
Remarks
This will call the release callback once all of the buffers in the returned IArrowArray are disposed. Only CPU device arrays are supported.
ImportRecordBatch(CArrowDeviceArray*, Schema)
Import C pointer as a RecordBatch.
public static RecordBatch ImportRecordBatch(CArrowDeviceArray* ptr, Schema schema)
Parameters
ptrCArrowDeviceArray*The pointer to the device array being imported
schemaSchemaThe schema of the record batch being imported
Returns
- RecordBatch
The imported C# record batch
Remarks
This will call the release callback once all of the buffers in the returned RecordBatch are disposed. Only CPU device arrays are supported.