Trait mz_persist_types::columnar::PartDecoder

source ·
pub trait PartDecoder<T> {
    // Required method
    fn decode(&self, idx: usize, val: &mut T);
}
Expand description

A decoder for values of a fixed schema.

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

Required Methods§

source

fn decode(&self, idx: usize, val: &mut T)

Decodes the value at the given index.

Implementations of this should reuse allocations within the passed value whenever possible.

Implementors§