pub struct StreamingIngesterBuilder<'a> { /* private fields */ }Expand description
Builder for configuring streaming ingestion
Implementations§
Source§impl<'a> StreamingIngesterBuilder<'a>
impl<'a> StreamingIngesterBuilder<'a>
Sourcepub fn new(fs: &'a VersionedEmbrFS) -> Self
pub fn new(fs: &'a VersionedEmbrFS) -> Self
Create a new builder with default settings
Sourcepub fn with_chunk_size(self, size: usize) -> Self
pub fn with_chunk_size(self, size: usize) -> Self
Set the chunk size for encoding
Smaller chunks improve memory efficiency but may reduce encoding quality for highly correlated data. Default is 4KB.
Sourcepub fn with_expected_version(self, version: u64) -> Self
pub fn with_expected_version(self, version: u64) -> Self
Set expected version for optimistic locking (update existing file)
Sourcepub fn with_compression(self, codec: CompressionCodec) -> Self
pub fn with_compression(self, codec: CompressionCodec) -> Self
Enable compression with specified codec
Sourcepub fn with_adaptive_chunking(self, enabled: bool) -> Self
pub fn with_adaptive_chunking(self, enabled: bool) -> Self
Enable adaptive chunking based on content similarity
When enabled, the ingester may adjust chunk boundaries to improve encoding quality for files with repeated patterns.
Sourcepub fn with_correction_threshold(self, threshold: f64) -> Self
pub fn with_correction_threshold(self, threshold: f64) -> Self
Set correction threshold for large file optimization
For large files, corrections beyond this threshold trigger re-encoding with adjusted parameters. Range: 0.0 - 1.0 (default 0.1 = 10%)
Sourcepub fn build(self) -> Result<StreamingIngester<'a>, EmbrFSError>
pub fn build(self) -> Result<StreamingIngester<'a>, EmbrFSError>
Build the streaming ingester
Auto Trait Implementations§
impl<'a> Freeze for StreamingIngesterBuilder<'a>
impl<'a> RefUnwindSafe for StreamingIngesterBuilder<'a>
impl<'a> Send for StreamingIngesterBuilder<'a>
impl<'a> Sync for StreamingIngesterBuilder<'a>
impl<'a> Unpin for StreamingIngesterBuilder<'a>
impl<'a> UnwindSafe for StreamingIngesterBuilder<'a>
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> 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