lance_encoding::decoder

Trait StructuralFieldDecoder

Source
pub trait StructuralFieldDecoder: Debug + Send {
    // Required methods
    fn accept_page(&mut self, _child: LoadedPage) -> Result<()>;
    fn drain(
        &mut self,
        num_rows: u64,
    ) -> Result<Box<dyn StructuralDecodeArrayTask>>;
    fn data_type(&self) -> &DataType;
}

Required Methods§

Source

fn accept_page(&mut self, _child: LoadedPage) -> Result<()>

Add a newly scheduled child decoder

The default implementation does not expect children and returns an error.

Source

fn drain(&mut self, num_rows: u64) -> Result<Box<dyn StructuralDecodeArrayTask>>

Creates a task to decode num_rows of data into an array

Source

fn data_type(&self) -> &DataType

The data type of the decoded data

Implementors§