Table of Contents

Class CArrowDeviceArrayExporter

Namespace
Apache.Arrow.C
Assembly
Apache.Arrow.dll
[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

array IArrowArray

The array to export

deviceArray CArrowDeviceArray*

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

batch RecordBatch

The record batch to export

deviceArray CArrowDeviceArray*

An allocated but uninitialized CArrowDeviceArray pointer.

Examples

CArrowDeviceArray* exportPtr = CArrowDeviceArray.Create();
CArrowDeviceArrayExporter.ExportRecordBatch(batch, exportPtr);
foreign_import_function(exportPtr);