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 128 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 1 KiB.
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§impl PartialEq for KvSeparationOptions
impl PartialEq for KvSeparationOptions
impl Eq for KvSeparationOptions
impl StructuralPartialEq for KvSeparationOptions
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.