Trait d4::stab::SecondaryTableWriter
source · 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§
sourcetype Partition: SecondaryTablePartWriter
type Partition: SecondaryTablePartWriter
The writer type to write a single parallel partition for the secondary table
Required Methods§
sourcefn create(root: &mut Directory<File>, header: &Header) -> Result<Self>
fn create(root: &mut Directory<File>, header: &Header) -> Result<Self>
Create the secondary table in the D4 file
sourcefn split(
&mut self,
partitions: &[(&str, u32, u32)]
) -> Result<Vec<Self::Partition>>
fn split( &mut self, partitions: &[(&str, u32, u32)] ) -> Result<Vec<Self::Partition>>
Split the secondary table into parallel partitions
sourcefn enable_deflate_encoding(&mut self, level: u32) -> &mut Self
fn enable_deflate_encoding(&mut self, level: u32) -> &mut Self
Enable the secondary table compression