Struct fjall::KvSeparationOptions
source · pub struct KvSeparationOptions { /* private fields */ }Expand description
Configuration options for key-value-separated partitions.
Implementations§
source§impl KvSeparationOptions
impl KvSeparationOptions
sourcepub fn file_target_size(self, bytes: u64) -> Self
pub fn file_target_size(self, bytes: u64) -> Self
Sets the target size of blob files.
Smaller blob files allow more granular garbage collection which allows lower space amp for lower write I/O cost.
Larger blob files decrease the number of files on disk and thus maintenance overhead.
Defaults to 64 MiB.
sourcepub fn separation_threshold(self, bytes: u32) -> Self
pub fn separation_threshold(self, bytes: u32) -> Self
Sets the key-value separation threshold in bytes.
Smaller value will reduce compaction overhead and thus write amplification, at the cost of lower read performance.
Defaults to 4KiB.
Trait Implementations§
source§impl Clone for KvSeparationOptions
impl Clone for KvSeparationOptions
source§fn clone(&self) -> KvSeparationOptions
fn clone(&self) -> KvSeparationOptions
Returns a copy 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 KvSeparationOptions
impl Debug for KvSeparationOptions
source§impl Decode for KvSeparationOptions
impl Decode for KvSeparationOptions
source§fn decode_from<R: Read>(reader: &mut R) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_from<R: Read>(reader: &mut R) -> Result<Self, DecodeError>where
Self: Sized,
Deserializes from reader.
source§impl Default for KvSeparationOptions
impl Default for KvSeparationOptions
source§impl Encode for KvSeparationOptions
impl Encode for KvSeparationOptions
source§fn encode_into<W: Write>(&self, writer: &mut W) -> Result<(), EncodeError>
fn encode_into<W: Write>(&self, writer: &mut W) -> Result<(), EncodeError>
Serializes into writer.
source§fn encode_into_vec(&self) -> Result<Vec<u8>, EncodeError>
fn encode_into_vec(&self) -> Result<Vec<u8>, EncodeError>
Serializes into vector.
Auto Trait Implementations§
impl Freeze for KvSeparationOptions
impl RefUnwindSafe for KvSeparationOptions
impl Send for KvSeparationOptions
impl Sync for KvSeparationOptions
impl Unpin for KvSeparationOptions
impl UnwindSafe for KvSeparationOptions
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)