Class: QgsArrowArray

Wrapper around an ArrowArray.

This object provides a helper to allow arrays to be passed to or returned from QGIS functions in C++ or Python. See the documentation for the Arrow C Data Interface for how to interact with the underlying ArrowArray: https://arrow.apache.org/docs/format/CDataInterface.html

Added in version 4.0.

Methods

cArrayAddress

Returns the address of the underlying ArrowArray for import or export across boundaries

exportToAddress

Export this array to the address of an empty ArrowArray for export across boundaries

isValid

Returns True if this wrapper object holds a valid ArrowArray

class qgis.core.QgsArrowArray[source]

Bases: object

__init__()

Construct invalid array holder

cArrayAddress(self) int

Returns the address of the underlying ArrowArray for import or export across boundaries

Warning

This is intended for advanced usage and may cause a crash if used incorrectly.

Return type:

int

exportToAddress(self, otherAddress: int)[source]

Export this array to the address of an empty ArrowArray for export across boundaries

Warning

This is intended for advanced usage and may cause a crash if used incorrectly.

Parameters:

otherAddress (int)

isValid(self) bool[source]

Returns True if this wrapper object holds a valid ArrowArray

Return type:

bool