Table of Contents

Class CArrowArrayExporter

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

Fields

EnableManagedMemoryExport

Formerly-experimental feature to enable exporting managed memory to CArrowArray. Now obsolete.

[Obsolete("EnableManagedMemoryExport is obsolete and ignored; managed memory export is now always enabled and this field will be removed in a future release.")]
public static bool EnableManagedMemoryExport

Field Value

bool

Methods

ExportArray(IArrowArray, CArrowArray*)

Export an IArrowArray to a CArrowArray. The exported array shares the underlying buffers via reference counting, so the original array remains valid after export.

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. 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, 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);