pub trait IsSortedKernel: VTable {
// Required methods
fn is_sorted(&self, array: &Self::Array) -> VortexResult<Option<bool>>;
fn is_strict_sorted(
&self,
array: &Self::Array,
) -> VortexResult<Option<bool>>;
}
Required Methods§
Sourcefn is_sorted(&self, array: &Self::Array) -> VortexResult<Option<bool>>
fn is_sorted(&self, array: &Self::Array) -> VortexResult<Option<bool>>
§Preconditions
- The array’s length is > 1.
- The array is not encoded as
NullArray
orConstantArray
. - If doing a
strict
check, if the array is nullable, it’ll have at most 1 null element as the first item in the array.
fn is_strict_sorted(&self, array: &Self::Array) -> VortexResult<Option<bool>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl IsSortedKernel for BoolVTable
impl IsSortedKernel for ChunkedVTable
impl IsSortedKernel for DecimalVTable
impl IsSortedKernel for ExtensionVTable
impl IsSortedKernel for FixedSizeListVTable
IsSorted implementation for FixedSizeListArray
.