pub struct SSTableWriterConfig {
pub block_size: SSTableBlockSize,
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§
§block_size: SSTableBlockSizeTarget uncompressed entry bytes per block; default 16 KiB.
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§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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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