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.
§Platform Support
Only little-endian platforms are officially supported and tested in CI. Big-endian platforms are not tested in CI and may not work correctly. Fixes for big-endian platforms are welcome and handled on a best-effort basis, but compatibility is not guaranteed.
Functions§
- 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.