Trait mz_persist_types::columnar::PartEncoder

source ·
pub trait PartEncoder<T> {
    // Required methods
    fn encode(&mut self, val: &T);
    fn finish(self) -> (usize, Vec<DynColumnMut>);
Expand description

An encoder for values of a fixed schema

This allows us to amortize the cost of downcasting columns into concrete types.

Required Methods§


fn encode(&mut self, val: &T)

Encodes the given value into the Part being constructed.


fn finish(self) -> (usize, Vec<DynColumnMut>)

Consumes self returning the columns that were written to.