vortex_runend/compute/
is_sorted.rs1use vortex_array::compute::{IsSortedKernel, IsSortedKernelAdapter, is_sorted, is_strict_sorted};
2use vortex_array::register_kernel;
3
4use crate::{RunEndArray, RunEndVTable};
5
6impl IsSortedKernel for RunEndVTable {
7 fn is_sorted(&self, array: &RunEndArray) -> vortex_error::VortexResult<bool> {
8 is_sorted(array.values())
9 }
10
11 fn is_strict_sorted(&self, array: &RunEndArray) -> vortex_error::VortexResult<bool> {
12 is_strict_sorted(array.to_canonical()?.as_ref())
13 }
14}
15
16register_kernel!(IsSortedKernelAdapter(RunEndVTable).lift());