Skip to main content

Crate arrow_cmp

Crate arrow_cmp 

Source
Expand description

Basic comparator factories shared by Arrow crates that need to compare arbitrary array slots without pulling in the full arrow-ord crate.

The only public surface is make_comparator (with DynComparator as the returned function type). arrow-ord re-exports both from here, so its public API is unchanged.

This crate exists so that crates such as arrow-select can use slot-wise comparison (e.g. for the run-end-encoded take fast path) without taking on the full ordering kernel suite โ€” which would either create a circular dependency (arrow-ord already depends on arrow-select) or force every downstream user of arrow-array to compile the comparator machinery whether they need it or not.

Functionsยง

child_opts ๐Ÿ”’
If parent sort order is descending we need to invert the value of nulls_first so that when the parent is sorted based on the produced ranks, nulls are still ordered correctly
compare ๐Ÿ”’
compare_boolean ๐Ÿ”’
compare_byte_view ๐Ÿ”’
compare_byte_view_values ๐Ÿ”’
compare_bytes ๐Ÿ”’
compare_dict ๐Ÿ”’
compare_fixed_list ๐Ÿ”’
compare_impl ๐Ÿ”’
compare_list ๐Ÿ”’
compare_list_view ๐Ÿ”’
compare_map ๐Ÿ”’
compare_primitive ๐Ÿ”’
compare_run_end_encoded ๐Ÿ”’
compare_struct ๐Ÿ”’
compare_union ๐Ÿ”’
make_comparator
Returns a comparison function that compares two values at two arbitrary indices.

Type Aliasesยง

DynComparator
Compare values at arbitrary indices in two arrays.