vortex_array::iter

Trait Accessor

Source
pub trait Accessor<T>: Send + Sync {
    // Required methods
    fn array_len(&self) -> usize;
    fn is_valid(&self, index: usize) -> bool;
    fn value_unchecked(&self, index: usize) -> T;
    fn array_validity(&self) -> Validity;

    // Provided methods
    fn batch_size(&self, start_idx: usize) -> usize { ... }
    fn decode_batch(&self, start_idx: usize) -> Vec<T> { ... }
}
Expand description

Define the basic behavior required for batched iterators

Required Methods§

Source

fn array_len(&self) -> usize

Source

fn is_valid(&self, index: usize) -> bool

Source

fn value_unchecked(&self, index: usize) -> T

Source

fn array_validity(&self) -> Validity

Provided Methods§

Source

fn batch_size(&self, start_idx: usize) -> usize

Source

fn decode_batch(&self, start_idx: usize) -> Vec<T>

Implementors§