GreatestLeastOperator

Trait GreatestLeastOperator 

Source
pub(super) trait GreatestLeastOperator {
    const NAME: &'static str;

    // Required methods
    fn keep_scalar<'a>(
        lhs: &'a ScalarValue,
        rhs: &'a ScalarValue,
    ) -> Result<&'a ScalarValue>;
    fn get_indexes_to_keep(
        lhs: &dyn Array,
        rhs: &dyn Array,
    ) -> Result<BooleanArray>;
}

Required Associated Constants§

Source

const NAME: &'static str

Required Methods§

Source

fn keep_scalar<'a>( lhs: &'a ScalarValue, rhs: &'a ScalarValue, ) -> Result<&'a ScalarValue>

Source

fn get_indexes_to_keep(lhs: &dyn Array, rhs: &dyn Array) -> Result<BooleanArray>

Return array with true for values that we should keep from the lhs array

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§

Source§

impl GreatestLeastOperator for GreatestFunc

Source§

const NAME: &'static str = "greatest"

Source§

impl GreatestLeastOperator for LeastFunc

Source§

const NAME: &'static str = "least"