Skip to main content

Module convert

Module convert 

Source
Expand description

Canonical (non-plugin) conversions of Arrow arrays into Vortex arrays.

Each from_arrow_* function converts one Arrow array shape; from_arrow_dyn dispatches on the Arrow DataType. These functions have no awareness of Arrow extension types — the plugin-aware entry points are the ArrowSession methods, which fall back to these conversions for non-extension data. The deprecated FromArrowArray impls are thin shims over these functions and will eventually be removed.

Traits§

IntoVortexArray
Zero-copy conversion of Arrow buffers into non-nullable Vortex arrays.

Functions§

from_arrow_batch
Canonical conversion of an Arrow RecordBatch into a Vortex struct array.
from_arrow_boolean
Zero-copy conversion of an Arrow boolean array into a Vortex Bool array.
from_arrow_byte_view
Zero-copy conversion of an Arrow string/binary view array into a Vortex VarBinView array.
from_arrow_bytes
Conversion of an Arrow (large) string/binary array into a Vortex VarBin array, sharing its bytes.
from_arrow_decimal32
Zero-copy conversion of an Arrow Decimal32 array into a Vortex decimal array.
from_arrow_decimal64
Zero-copy conversion of an Arrow Decimal64 array into a Vortex decimal array.
from_arrow_decimal128
Zero-copy conversion of an Arrow Decimal128 array into a Vortex decimal array.
from_arrow_decimal256
Zero-copy conversion of an Arrow Decimal256 array into a Vortex decimal array.
from_arrow_dictionary
Conversion of an Arrow dictionary array into a Vortex Dict array.
from_arrow_dyn
Canonical conversion of any supported Arrow array into a Vortex array, dispatching on the Arrow DataType.
from_arrow_fixed_size_list
Conversion of an Arrow fixed-size list array into a Vortex FixedSizeList array.
from_arrow_list
Conversion of an Arrow (large) list array into a Vortex List array.
from_arrow_list_view
Conversion of an Arrow (large) list-view array into a Vortex ListView array.
from_arrow_map
Conversion of an Arrow map array into a Vortex Map array.
from_arrow_null
Conversion of an Arrow null array into a Vortex Null array.
from_arrow_primitive
Zero-copy conversion of an Arrow numeric primitive array into a Vortex array.
from_arrow_struct
Conversion of an Arrow struct array into a Vortex Struct array, converting each column.
from_arrow_temporal
Conversion of an Arrow temporal array (timestamp/date/time) into a Vortex temporal extension array.
nulls
Convert an Arrow NullBuffer into a Vortex Validity for an array of the given nullability.