Table of Contents

Class CArrowDeviceArrayImporter

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

ptr CArrowDeviceArray*

The pointer to the device array being imported

type IArrowType

The 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

ptr CArrowDeviceArray*

The pointer to the device array being imported

schema Schema

The 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.