pub struct SSTableWriterConfig {
pub compression_level: CompressionLevel,
pub use_dictionary: bool,
pub dict_size: usize,
pub use_bloom_filter: bool,
pub bloom_bits_per_key: usize,
}Expand description
SSTable writer configuration
Fields§
§compression_level: CompressionLevelCompression level (1-22, higher = better compression but slower)
use_dictionary: boolWhether to train and use a dictionary for compression
dict_size: usizeDictionary size in bytes (default 64KB)
use_bloom_filter: boolWhether to build a bloom filter
bloom_bits_per_key: usizeBloom filter bits per key (default 10 = ~1% false positive rate)
Implementations§
Source§impl SSTableWriterConfig
impl SSTableWriterConfig
Sourcepub fn from_optimization(optimization: IndexOptimization) -> Self
pub fn from_optimization(optimization: IndexOptimization) -> Self
Create config from IndexOptimization mode
Sourcepub fn max_compression() -> Self
pub fn max_compression() -> Self
Maximum compression configuration - prioritize size over speed
Trait Implementations§
Source§impl Clone for SSTableWriterConfig
impl Clone for SSTableWriterConfig
Source§fn clone(&self) -> SSTableWriterConfig
fn clone(&self) -> SSTableWriterConfig
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 SSTableWriterConfig
impl Debug for SSTableWriterConfig
Auto Trait Implementations§
impl Freeze for SSTableWriterConfig
impl RefUnwindSafe for SSTableWriterConfig
impl Send for SSTableWriterConfig
impl Sync for SSTableWriterConfig
impl Unpin for SSTableWriterConfig
impl UnwindSafe for SSTableWriterConfig
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