pub(super) fn try_new(columns: &[SortColumn]) -> ArrowResult<KeyRangeComparator<'_>> {
        let compare_items = columns
            .iter()
            .map(|column| {
                // flatten and convert build comparators
                // use ArrayData for is_valid checks later to avoid dynamic call
                let values = column.values.as_ref();
                let data = values.data_ref();
                Ok((
                    data,
                    build_compare(values, values)?,
                    column.options.unwrap_or_default(),
                ))
            })
            .collect::<ArrowResult<Vec<_>>>()?;
        Ok(KeyRangeComparator { compare_items })
    }
/// Create a new comparator that will wrap the given columns and give comparison
/// results with two indices.
Create a new comparator that will wrap the given columns and give comparison
results with two indices.
Create a new comparator that will wrap the given columns and give comparison results with two indices .
pub(super) fn try_new(columns: &[SortColumn]) -> ArrowResult<KeyRangeComparator<'_>> {
        let compare_items = columns
            .iter()
            .map(|column| {
                // flatten and convert build comparators
                // use ArrayData for is_valid checks later to avoid dynamic call
                let values = column.values.as_ref();
                let data = values.data_ref();
                Ok((
                    data,
                    build_compare(values, values)?,
                    column.options.unwrap_or_default(),
                ))
            })
            .collect::<ArrowResult<Vec<_>>>()?;
        Ok(KeyRangeComparator { compare_items })
    }
pub ( super ) fn try_new ( columns : & [ SortColumn ] ) -> ArrowResult < KeyRangeComparator < ' _ > > { let compare_items = columns . iter ( ) . map ( | column | { // flatten and convert build comparators // use ArrayData for is_valid checks later to avoid dynamic call let values = column . values . as_ref ( ) ; let data = values . data_ref ( ) ; Ok ( ( data , build_compare ( values , values ) ? , column . options . unwrap_or_default ( ) , ) ) } ) . collect :: < ArrowResult < Vec < _ > > > ( ) ? ; Ok ( KeyRangeComparator { compare_items } ) }
Create a new comparator that will wrap the given columns and give comparison
results with two indices.
Create a new comparator that will wrap the given columns and give comparison results with two indices .
columns
&[SortColumn]
columns
&[SortColumn]