pub struct ChunkingConfig {
pub seq_threshold: u64,
pub jump_trigger: u64,
pub jump_size: u64,
pub op_mode: SeqOpMode,
pub min_block_size: u64,
pub avg_block_size: u64,
pub max_block_size: u64,
}Expand description
Configuration for the chunking algorithm
Fields§
§seq_threshold: u64Number of consecutive sequence bytes needed to trigger a cut
jump_trigger: u64Number of opposing slopes before jumping ahead
jump_size: u64Number of bytes to jump when trigger is hit
op_mode: SeqOpModeSequence detection mode (increasing or decreasing)
min_block_size: u64Minimum chunk size in bytes
avg_block_size: u64Target average chunk size in bytes
max_block_size: u64Maximum chunk size in bytes
Implementations§
Source§impl ChunkingConfig
impl ChunkingConfig
Sourcepub fn builder() -> ChunkingConfigBuilder
pub fn builder() -> ChunkingConfigBuilder
Create a builder for configuring chunking parameters
pub fn seq_threshold(&self) -> u64
pub fn jump_trigger(&self) -> u64
pub fn jump_size(&self) -> u64
pub fn op_mode(&self) -> SeqOpMode
pub fn min_block_size(&self) -> u64
pub fn avg_block_size(&self) -> u64
pub fn max_block_size(&self) -> u64
Trait Implementations§
Source§impl Clone for ChunkingConfig
impl Clone for ChunkingConfig
Source§fn clone(&self) -> ChunkingConfig
fn clone(&self) -> ChunkingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkingConfig
impl Debug for ChunkingConfig
Auto Trait Implementations§
impl Freeze for ChunkingConfig
impl RefUnwindSafe for ChunkingConfig
impl Send for ChunkingConfig
impl Sync for ChunkingConfig
impl Unpin for ChunkingConfig
impl UnwindSafe for ChunkingConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more