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§
Sourcefn is_valid(&self, array: &Array, index: usize) -> VortexResult<bool>
fn is_valid(&self, array: &Array, index: usize) -> VortexResult<bool>
Returns whether the index item is valid.
Sourcefn all_valid(&self, array: &Array) -> VortexResult<bool>
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.
fn validity_mask(&self, array: &Array) -> VortexResult<Mask>
Provided Methods§
Sourcefn invalid_count(&self, array: &Array) -> VortexResult<usize>
fn invalid_count(&self, array: &Array) -> VortexResult<usize>
Returns the number of invalid elements in the array.