ValidityVTable

Trait ValidityVTable 

Source
pub trait ValidityVTable<V: VTable> {
    // Required methods
    fn is_valid(array: &V::Array, index: usize) -> bool;
    fn all_valid(array: &V::Array) -> bool;
    fn all_invalid(array: &V::Array) -> bool;
    fn validity(array: &V::Array) -> VortexResult<Validity>;

    // Provided methods
    fn valid_count(array: &V::Array) -> usize { ... }
    fn invalid_count(array: &V::Array) -> usize { ... }
    fn validity_mask(array: &V::Array) -> Mask { ... }
}

Required Methods§

Source

fn is_valid(array: &V::Array, index: usize) -> bool

Source

fn all_valid(array: &V::Array) -> bool

Source

fn all_invalid(array: &V::Array) -> bool

Source

fn validity(array: &V::Array) -> VortexResult<Validity>

Returns the Validity of the array.

§Pre-conditions
  • The array DType is nullable.

Provided Methods§

Source

fn valid_count(array: &V::Array) -> 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(array: &V::Array) -> 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.
Source

fn validity_mask(array: &V::Array) -> Mask

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§