pub struct ParallelChunkingConfig {
pub chunk_size: usize,
pub strategy: ChunkingStrategy,
pub max_links_per_node: usize,
pub hash_algorithm: HashAlgorithm,
pub num_threads: Option<usize>,
}Expand description
Configuration for parallel chunking operations
Fields§
§chunk_size: usizeSize of each chunk in bytes
strategy: ChunkingStrategyChunking strategy
max_links_per_node: usizeMaximum links per DAG node
hash_algorithm: HashAlgorithmHash algorithm to use
num_threads: Option<usize>Number of threads to use (None = use Rayon default)
Implementations§
Source§impl ParallelChunkingConfig
impl ParallelChunkingConfig
Sourcepub fn with_chunk_size(chunk_size: usize) -> Result<Self>
pub fn with_chunk_size(chunk_size: usize) -> Result<Self>
Create a new configuration with specified chunk size
Sourcepub fn with_threads(self, num_threads: usize) -> Self
pub fn with_threads(self, num_threads: usize) -> Self
Set the number of threads to use
Sourcepub fn with_hash_algorithm(self, algorithm: HashAlgorithm) -> Self
pub fn with_hash_algorithm(self, algorithm: HashAlgorithm) -> Self
Set the hash algorithm
Sourcepub fn with_content_defined(self) -> Self
pub fn with_content_defined(self) -> Self
Enable content-defined chunking
Trait Implementations§
Source§impl Clone for ParallelChunkingConfig
impl Clone for ParallelChunkingConfig
Source§fn clone(&self) -> ParallelChunkingConfig
fn clone(&self) -> ParallelChunkingConfig
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 ParallelChunkingConfig
impl Debug for ParallelChunkingConfig
Auto Trait Implementations§
impl Freeze for ParallelChunkingConfig
impl RefUnwindSafe for ParallelChunkingConfig
impl Send for ParallelChunkingConfig
impl Sync for ParallelChunkingConfig
impl Unpin for ParallelChunkingConfig
impl UnwindSafe for ParallelChunkingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more