Table of Contents

Class CArrowArrayExporter

Namespace
Apache.Arrow.C
Assembly
Apache.Arrow.dll
public static class CArrowArrayExporter
Inheritance
CArrowArrayExporter
Inherited Members

Fields

EnableManagedMemoryExport

Experimental feature to enable exporting managed memory to CArrowArray. Use with caution.

public static bool EnableManagedMemoryExport

Field Value

bool

Methods

ExportArray(IArrowArray, CArrowArray*)

Export an IArrowArray to a CArrowArray. Whether or not the export succeeds, the original array becomes invalid. Clone an array to continue using it after a copy has been exported.

public static void ExportArray(IArrowArray array, CArrowArray* cArray)

Parameters

array IArrowArray

The array to export

cArray CArrowArray*

An allocated but uninitialized CArrowArray pointer.

Examples

CArrowArray* exportPtr = CArrowArray.Create();
CArrowArrayExporter.ExportArray(array, exportPtr);
foreign_import_function(exportPtr);

ExportRecordBatch(RecordBatch, CArrowArray*)

Export a RecordBatch to a CArrowArray. Whether or not the export succeeds, the original record batch becomes invalid. Clone the batch to continue using it after a copy has been exported.

public static void ExportRecordBatch(RecordBatch batch, CArrowArray* cArray)

Parameters

batch RecordBatch

The record batch to export

cArray CArrowArray*

An allocated but uninitialized CArrowArray pointer.

Examples

CArrowArray* exportPtr = CArrowArray.Create();
CArrowArrayExporter.ExportRecordBatch(batch, exportPtr);
foreign_import_function(exportPtr);