pub trait PrimaryTableWriter: Sized {
    type Partition: PTablePartitionWriter;

    // Required methods
    fn create(directory: &mut Directory<File>, header: &Header) -> Result<Self>;
    fn split(
        &mut self,
        header: &Header,
        size_limit: Option<usize>
    ) -> Result<Vec<Self::Partition>>;
}
Expand description

The trait that is used to write a primary table

Required Associated Types§

source

type Partition: PTablePartitionWriter

The writer type for a parallel chunk

Required Methods§

source

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

Create the primary table in the file

source

fn split( &mut self, header: &Header, size_limit: Option<usize> ) -> Result<Vec<Self::Partition>>

Split the primary table into parallel partitions

Implementors§