Trait lance_encoding::encoder::ArrayEncodingStrategy

source ·
pub trait ArrayEncodingStrategy: Send + Sync + Debug {
    // Required method
    fn create_array_encoder(
        &self,
        arrays: &[ArrayRef],
    ) -> Result<Box<dyn ArrayEncoder>>;
}
Expand description

A trait to pick which encoding strategy to use for a single page of data

Presumably, implementations will make encoding decisions based on array statistics.

Required Methods§

source

fn create_array_encoder( &self, arrays: &[ArrayRef], ) -> Result<Box<dyn ArrayEncoder>>

Implementors§