pub struct CompactionConfig {Show 23 fields
pub max_bytes_for_level_base: u64,
pub max_level: u64,
pub max_bytes_for_level_multiplier: u64,
pub max_compaction_bytes: u64,
pub sub_level_max_compaction_bytes: u64,
pub level0_tier_compact_file_number: u64,
pub compaction_mode: i32,
pub compression_algorithm: Vec<String>,
pub target_file_size_base: u64,
pub compaction_filter_mask: u32,
pub max_sub_compaction: u32,
pub max_space_reclaim_bytes: u64,
pub split_by_state_table: bool,
pub split_weight_by_vnode: u32,
pub level0_stop_write_threshold_sub_level_number: u64,
pub level0_max_compact_file_number: u64,
pub level0_sub_level_compact_level_count: u32,
pub level0_overlapping_sub_level_compact_level_count: u32,
pub tombstone_reclaim_ratio: u32,
pub enable_emergency_picker: bool,
pub max_l0_compact_level_count: Option<u32>,
pub sst_allowed_trivial_move_min_size: Option<u64>,
pub disable_auto_group_scheduling: Option<bool>,
}
Fields§
§max_bytes_for_level_base: u64
§max_level: u64
§max_bytes_for_level_multiplier: u64
§max_compaction_bytes: u64
§sub_level_max_compaction_bytes: u64
§level0_tier_compact_file_number: u64
§compaction_mode: i32
§compression_algorithm: Vec<String>
§target_file_size_base: u64
§compaction_filter_mask: u32
§max_sub_compaction: u32
§max_space_reclaim_bytes: u64
§split_by_state_table: bool
§split_weight_by_vnode: u32
Compaction needs to cut the state table every time 1/weight of vnodes in the table have been processed.
level0_stop_write_threshold_sub_level_number: u64
soft limit for max number of sub level number
level0_max_compact_file_number: u64
§level0_sub_level_compact_level_count: u32
§level0_overlapping_sub_level_compact_level_count: u32
for tier compaction pick overlapping level
tombstone_reclaim_ratio: u32
§enable_emergency_picker: bool
§max_l0_compact_level_count: Option<u32>
The limitation of the level count of l0 compaction
sst_allowed_trivial_move_min_size: Option<u64>
The limitation of base level trivial move sst size
disable_auto_group_scheduling: Option<bool>
The limitation of auto group scheduling
Implementations§
source§impl CompactionConfig
impl CompactionConfig
sourcepub fn compaction_mode(&self) -> CompactionMode
pub fn compaction_mode(&self) -> CompactionMode
Returns the enum value of compaction_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_compaction_mode(&mut self, value: CompactionMode)
pub fn set_compaction_mode(&mut self, value: CompactionMode)
Sets compaction_mode
to the provided enum value.
sourcepub fn max_l0_compact_level_count(&self) -> u32
pub fn max_l0_compact_level_count(&self) -> u32
Returns the value of max_l0_compact_level_count
, or the default value if max_l0_compact_level_count
is unset.
sourcepub fn sst_allowed_trivial_move_min_size(&self) -> u64
pub fn sst_allowed_trivial_move_min_size(&self) -> u64
Returns the value of sst_allowed_trivial_move_min_size
, or the default value if sst_allowed_trivial_move_min_size
is unset.
sourcepub fn disable_auto_group_scheduling(&self) -> bool
pub fn disable_auto_group_scheduling(&self) -> bool
Returns the value of disable_auto_group_scheduling
, or the default value if disable_auto_group_scheduling
is unset.
source§impl CompactionConfig
impl CompactionConfig
pub fn get_max_bytes_for_level_base(&self) -> u64
pub fn get_max_level(&self) -> u64
pub fn get_max_bytes_for_level_multiplier(&self) -> u64
pub fn get_max_compaction_bytes(&self) -> u64
pub fn get_sub_level_max_compaction_bytes(&self) -> u64
pub fn get_level0_tier_compact_file_number(&self) -> u64
pub fn get_compaction_mode(&self) -> Result<CompactionMode, PbFieldNotFound>
pub fn get_compression_algorithm(&self) -> &Vec<String>
pub fn get_target_file_size_base(&self) -> u64
pub fn get_compaction_filter_mask(&self) -> u32
pub fn get_max_sub_compaction(&self) -> u32
pub fn get_max_space_reclaim_bytes(&self) -> u64
pub fn get_split_by_state_table(&self) -> bool
pub fn get_split_weight_by_vnode(&self) -> u32
pub fn get_level0_stop_write_threshold_sub_level_number(&self) -> u64
pub fn get_level0_max_compact_file_number(&self) -> u64
pub fn get_level0_sub_level_compact_level_count(&self) -> u32
pub fn get_level0_overlapping_sub_level_compact_level_count(&self) -> u32
pub fn get_tombstone_reclaim_ratio(&self) -> u32
pub fn get_enable_emergency_picker(&self) -> bool
pub fn get_max_l0_compact_level_count(&self) -> Result<&u32, PbFieldNotFound>
pub fn get_sst_allowed_trivial_move_min_size( &self, ) -> Result<&u64, PbFieldNotFound>
pub fn get_disable_auto_group_scheduling( &self, ) -> Result<&bool, PbFieldNotFound>
Trait Implementations§
source§impl Clone for CompactionConfig
impl Clone for CompactionConfig
source§fn clone(&self) -> CompactionConfig
fn clone(&self) -> CompactionConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CompactionConfig
impl Debug for CompactionConfig
source§impl Default for CompactionConfig
impl Default for CompactionConfig
source§impl<'de> Deserialize<'de> for CompactionConfig
impl<'de> Deserialize<'de> for CompactionConfig
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl Message for CompactionConfig
impl Message for CompactionConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CompactionConfig
impl PartialEq for CompactionConfig
source§impl Serialize for CompactionConfig
impl Serialize for CompactionConfig
impl Eq for CompactionConfig
impl StructuralPartialEq for CompactionConfig
Auto Trait Implementations§
impl Freeze for CompactionConfig
impl RefUnwindSafe for CompactionConfig
impl Send for CompactionConfig
impl Sync for CompactionConfig
impl Unpin for CompactionConfig
impl UnwindSafe for CompactionConfig
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
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)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request