Trait ValidityVTable

Source
pub trait ValidityVTable<Array> {
    // Required methods
    fn is_valid(&self, array: &Array, index: usize) -> VortexResult<bool>;
    fn all_valid(&self, array: &Array) -> VortexResult<bool>;
    fn validity_mask(&self, array: &Array) -> VortexResult<Mask>;

    // Provided method
    fn invalid_count(&self, array: &Array) -> VortexResult<usize> { ... }
}

Required Methods§

Source

fn is_valid(&self, array: &Array, index: usize) -> VortexResult<bool>

Returns whether the index item is valid.

Source

fn all_valid(&self, array: &Array) -> VortexResult<bool>

Returns whether the array is all valid.

This is usually cheaper than computing a precise invalid_count.

Source

fn validity_mask(&self, array: &Array) -> VortexResult<Mask>

Provided Methods§

Source

fn invalid_count(&self, array: &Array) -> VortexResult<usize>

Returns the number of invalid elements in the array.

Implementors§