lance_encoding::encoder

Trait ArrayEncodingStrategy

Source
pub trait ArrayEncodingStrategy:
    Send
    + Sync
    + Debug {
    // Required method
    fn create_array_encoder(
        &self,
        arrays: &[ArrayRef],
        field: &Field,
    ) -> 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], field: &Field, ) -> Result<Box<dyn ArrayEncoder>>

Implementors§