#[repr(C)]pub struct BucketOptions {
pub cache_capacity: usize,
pub cache_evict_pct: usize,
pub pool_capacity: usize,
pub checkpoint_size: usize,
pub inline_size: usize,
pub split_elems: u16,
pub consolidate_threshold: u16,
pub enable_backpressure: bool,
pub _padding: [u8; 3],
}Fields§
§cache_capacity: usizePer-bucket target resident bytes for mapped B+Tree pages.
cache_evict_pct: usizePercentage of items evicted per round. Range is [10, 80], default is 20%
pool_capacity: usizePer-bucket pool target bytes. Default is Self::POOL_CAP
checkpoint_size: usizeMaximum bytes a single checkpoint round should emit. Default is Self::CHECKPOINT_SIZE
inline_size: usizeFor branch nodes, keys and indexes are always inlined. For leaf nodes, values smaller than
Self::MIN_INLINE_SIZE are always inlined, and values larger than Self::MAX_INLINE_SIZE
are stored as blobs. Default is Self::MIN_INLINE_SIZE
split_elems: u16Maximum number of elements in an SST (B+Tree node). Default is Self::MAX_SPLIT_ELEMS
consolidate_threshold: u16Threshold for consolidating delta chains. Range is [16, Self::split_elems / 2]
enable_backpressure: boolEnable foreground write backpressure. Default is true
_padding: [u8; 3]Implementations§
Source§impl BucketOptions
impl BucketOptions
pub const MIN_SPLIT_ELEMS: u16 = 64
pub const MAX_SPLIT_ELEMS: u16 = 512
pub const CACHE_CAP: usize
pub const POOL_CAP: usize
pub const CHECKPOINT_SIZE: usize
pub const MIN_INLINE_SIZE: usize = 4096
pub const MAX_INLINE_SIZE: usize = 16384
pub fn new() -> Self
pub fn validate(self) -> BucketOptions
Trait Implementations§
Source§impl Clone for BucketOptions
impl Clone for BucketOptions
Source§fn clone(&self) -> BucketOptions
fn clone(&self) -> BucketOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BucketOptions
Source§impl Debug for BucketOptions
impl Debug for BucketOptions
Source§impl Default for BucketOptions
impl Default for BucketOptions
impl Eq for BucketOptions
Source§impl PartialEq for BucketOptions
impl PartialEq for BucketOptions
Source§fn eq(&self, other: &BucketOptions) -> bool
fn eq(&self, other: &BucketOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BucketOptions
Auto Trait Implementations§
impl Freeze for BucketOptions
impl RefUnwindSafe for BucketOptions
impl Send for BucketOptions
impl Sync for BucketOptions
impl Unpin for BucketOptions
impl UnsafeUnpin for BucketOptions
impl UnwindSafe for BucketOptions
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