pyarrow.acero.OrderByNodeOptions#
- class pyarrow.acero.OrderByNodeOptions(sort_keys=(), *, null_placement=None)#
Bases:
_OrderByNodeOptionsMake a node which applies a new ordering to the data.
Currently this node works by accumulating all data, sorting, and then emitting the new data with an updated batch index. Larger-than-memory sort is not currently supported.
This is the option class for the âorder_byâ node factory.
- Parameters:
- sort_keyssequence of (
name,order, null_placement=âat_endâ)tuples Names of field/column keys to sort the input on, along with the order each field/column is sorted in. Each field reference can be a string column name or expression. Accepted values for order are âascendingâ, âdescendingâ. Accepted values for null_placement are âat_startâ, âat_endâ.
- null_placement
str, optional Where nulls in input should be sorted, only applying to columns/fields mentioned in sort_keys. Accepted values are âat_startâ, âat_endâ,
- sort_keyssequence of (
- __init__(self, sort_keys=(), *, null_placement=None)#
Methods
__init__(self[, sort_keys, null_placement])