Trait swh_graph::utils::dataset_writer::TableWriter
source · pub trait TableWriter {
type Schema: Clone;
type CloseResult: Send;
// Required methods
fn new(
path: PathBuf,
schema: Self::Schema,
flush_threshold: Option<usize>
) -> Result<Self>
where Self: Sized;
fn flush(&mut self) -> Result<()>;
fn close(self) -> Result<Self::CloseResult>;
}
Required Associated Types§
Required Methods§
fn new( path: PathBuf, schema: Self::Schema, flush_threshold: Option<usize> ) -> Result<Self>where Self: Sized,
sourcefn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Calls .into()
on the internal builder, and writes its result to disk.