Class CArrowDeviceArrayExporter
[Experimental("ArrowDeviceDataApi")]
public static class CArrowDeviceArrayExporter
- Inheritance
-
CArrowDeviceArrayExporter
- Inherited Members
Methods
ExportArray(IArrowArray, CArrowDeviceArray*)
Export an IArrowArray to a CArrowDeviceArray. The exported array shares the underlying buffers via reference counting, so the original array remains valid after export.
public static void ExportArray(IArrowArray array, CArrowDeviceArray* deviceArray)
Parameters
arrayIArrowArrayThe array to export
deviceArrayCArrowDeviceArray*An allocated but uninitialized CArrowDeviceArray pointer.
Examples
CArrowDeviceArray* exportPtr = CArrowDeviceArray.Create();
CArrowDeviceArrayExporter.ExportArray(array, exportPtr);
foreign_import_function(exportPtr);
ExportRecordBatch(RecordBatch, CArrowDeviceArray*)
Export a RecordBatch to a CArrowDeviceArray. The exported record batch shares the underlying buffers via reference counting, so the original batch remains valid after export.
public static void ExportRecordBatch(RecordBatch batch, CArrowDeviceArray* deviceArray)
Parameters
batchRecordBatchThe record batch to export
deviceArrayCArrowDeviceArray*An allocated but uninitialized CArrowDeviceArray pointer.
Examples
CArrowDeviceArray* exportPtr = CArrowDeviceArray.Create();
CArrowDeviceArrayExporter.ExportRecordBatch(batch, exportPtr);
foreign_import_function(exportPtr);