[][src]Trait d4::stab::STableWriter

pub trait STableWriter: Sized {
    type Partition: STablePartitionWriter;
    fn create(
        root: &mut Directory<'static, ReadWrite, 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; }

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

Associated Types

type Partition: STablePartitionWriter

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

Loading content...

Required methods

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

Create the secondary table in the D4 file

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

Split the secondary table into parallel partitions

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

Enable the secondary table compression

Loading content...

Implementors

impl<R: Record> STableWriter for SimpleKeyValueWriter<R>[src]

type Partition = SimpleKeyValuePartialWriter<R>

Loading content...