pub trait SecondaryTableWriter: Sized {
    type Partition: SecondaryTablePartWriter;

    // Required methods
    fn create(root: &mut Directory<File>, header: &Header) -> Result<Self>;
    fn split(
        &mut self,
        partitions: &[(&str, u32, u32)]
    ) -> Result<Vec<Self::Partition>>;
    fn enable_deflate_encoding(&mut self, level: u32) -> &mut Self;
}
Expand description

Any type that is used to write a secondary table for D4 file

Required Associated Types§

source

type Partition: SecondaryTablePartWriter

The writer type to write a single parallel partition for the secondary table

Required Methods§

source

fn create(root: &mut Directory<File>, header: &Header) -> Result<Self>

Create the secondary table in the D4 file

source

fn split( &mut self, partitions: &[(&str, u32, u32)] ) -> Result<Vec<Self::Partition>>

Split the secondary table into parallel partitions

source

fn enable_deflate_encoding(&mut self, level: u32) -> &mut Self

Enable the secondary table compression

Implementors§