pub(crate) trait DedupStrategy: Send {
// Required methods
fn push_batch(
&mut self,
batch: Batch,
metrics: &mut DedupMetrics,
) -> Result<Option<Batch>>;
fn finish(&mut self, metrics: &mut DedupMetrics) -> Result<Option<Batch>>;
}
Expand description
Strategy to remove duplicate rows from sorted batches.
Required Methods§
Sourcefn push_batch(
&mut self,
batch: Batch,
metrics: &mut DedupMetrics,
) -> Result<Option<Batch>>
fn push_batch( &mut self, batch: Batch, metrics: &mut DedupMetrics, ) -> Result<Option<Batch>>
Pushes a batch to the dedup strategy. Returns the deduplicated batch.