Trait ArrayValidityImpl

Source
pub trait ArrayValidityImpl {
    // Required methods
    fn _is_valid(&self, index: usize) -> VortexResult<bool>;
    fn _all_valid(&self) -> VortexResult<bool>;
    fn _all_invalid(&self) -> VortexResult<bool>;
    fn _validity_mask(&self) -> VortexResult<Mask>;

    // Provided methods
    fn _valid_count(&self) -> VortexResult<usize> { ... }
    fn _invalid_count(&self) -> VortexResult<usize> { ... }
}
Expand description

Implementation trait for validity functions.

These functions should not be called directly, rather their equivalents on the base crate::Array trait should be used.

Required Methods§

Source

fn _is_valid(&self, index: usize) -> VortexResult<bool>

Returns whether the index item is valid.

§Pre-conditions
  • index is less than the length of the array.
Source

fn _all_valid(&self) -> VortexResult<bool>

Returns whether the array is all valid.

Source

fn _all_invalid(&self) -> VortexResult<bool>

Returns whether the array is all invalid.

Source

fn _validity_mask(&self) -> VortexResult<Mask>

Returns the canonical validity mask for the array.

§Post-conditions
  • The count is less than or equal to the length of the array.

Provided Methods§

Source

fn _valid_count(&self) -> VortexResult<usize>

Returns the number of valid elements in the array.

§Post-conditions
  • The count is less than or equal to the length of the array.
Source

fn _invalid_count(&self) -> VortexResult<usize>

Returns the number of invalid elements in the array.

§Post-conditions
  • The count is less than or equal to the length of the array.

Implementors§