Skip to main content

ChunkingAlgorithm

Trait ChunkingAlgorithm 

Source
pub trait ChunkingAlgorithm: Send + Sync {
    // Required method
    fn materialize(
        &self,
        strategy: &ChunkingStrategy,
        record: &DataRecord,
        section_idx: usize,
        section: &RecordSection,
    ) -> Vec<RecordChunk>;
}
Expand description

Pluggable algorithm for materializing chunks from a record section.

Required Methods§

Source

fn materialize( &self, strategy: &ChunkingStrategy, record: &DataRecord, section_idx: usize, section: &RecordSection, ) -> Vec<RecordChunk>

Produce candidate chunks for one section of a record.

Implementors§