Struct tikv::config::DefaultCfConfig[][src]

pub struct DefaultCfConfig {
    pub block_size: ReadableSize,
    pub block_cache_size: ReadableSize,
    pub disable_block_cache: bool,
    pub cache_index_and_filter_blocks: bool,
    pub pin_l0_filter_and_index_blocks: bool,
    pub use_bloom_filter: bool,
    pub optimize_filters_for_hits: bool,
    pub whole_key_filtering: bool,
    pub bloom_filter_bits_per_key: i32,
    pub block_based_bloom_filter: bool,
    pub read_amp_bytes_per_bit: u32,
    pub compression_per_level: [DBCompressionType; 7],
    pub write_buffer_size: ReadableSize,
    pub max_write_buffer_number: i32,
    pub min_write_buffer_number_to_merge: i32,
    pub max_bytes_for_level_base: ReadableSize,
    pub target_file_size_base: ReadableSize,
    pub level0_file_num_compaction_trigger: i32,
    pub level0_slowdown_writes_trigger: i32,
    pub level0_stop_writes_trigger: i32,
    pub max_compaction_bytes: ReadableSize,
    pub compaction_pri: CompactionPriority,
    pub dynamic_level_bytes: bool,
    pub num_levels: i32,
    pub max_bytes_for_level_multiplier: i32,
    pub compaction_style: DBCompactionStyle,
    pub disable_auto_compactions: bool,
    pub soft_pending_compaction_bytes_limit: ReadableSize,
    pub hard_pending_compaction_bytes_limit: ReadableSize,
    pub force_consistency_checks: bool,
    pub prop_size_index_distance: u64,
    pub prop_keys_index_distance: u64,
    pub enable_doubly_skiplist: bool,
    pub enable_compaction_guard: bool,
    pub compaction_guard_min_output_file_size: ReadableSize,
    pub compaction_guard_max_output_file_size: ReadableSize,
    pub bottommost_level_compression: DBCompressionType,
    pub bottommost_zstd_compression_dict_size: i32,
    pub bottommost_zstd_compression_sample_size: i32,
    pub titan: TitanCfConfig,
}

Fields

block_size: ReadableSizeblock_cache_size: ReadableSizedisable_block_cache: boolcache_index_and_filter_blocks: boolpin_l0_filter_and_index_blocks: booluse_bloom_filter: booloptimize_filters_for_hits: boolwhole_key_filtering: boolbloom_filter_bits_per_key: i32block_based_bloom_filter: boolread_amp_bytes_per_bit: u32compression_per_level: [DBCompressionType; 7]write_buffer_size: ReadableSizemax_write_buffer_number: i32min_write_buffer_number_to_merge: i32max_bytes_for_level_base: ReadableSizetarget_file_size_base: ReadableSizelevel0_file_num_compaction_trigger: i32level0_slowdown_writes_trigger: i32level0_stop_writes_trigger: i32max_compaction_bytes: ReadableSizecompaction_pri: CompactionPrioritydynamic_level_bytes: boolnum_levels: i32max_bytes_for_level_multiplier: i32compaction_style: DBCompactionStyledisable_auto_compactions: boolsoft_pending_compaction_bytes_limit: ReadableSizehard_pending_compaction_bytes_limit: ReadableSizeforce_consistency_checks: boolprop_size_index_distance: u64prop_keys_index_distance: u64enable_doubly_skiplist: boolenable_compaction_guard: boolcompaction_guard_min_output_file_size: ReadableSizecompaction_guard_max_output_file_size: ReadableSizebottommost_level_compression: DBCompressionTypebottommost_zstd_compression_dict_size: i32bottommost_zstd_compression_sample_size: i32titan: TitanCfConfig

Implementations

impl DefaultCfConfig[src]

fn validate(&self) -> Result<(), Box<dyn Error>>[src]

impl DefaultCfConfig[src]

pub fn build_opt(
    &self,
    cache: &Option<Cache>,
    region_info_accessor: Option<&RegionInfoAccessor>,
    enable_ttl: bool
) -> ColumnFamilyOptions
[src]

Trait Implementations

impl Clone for DefaultCfConfig[src]

impl<'lt> Configuration<'lt> for DefaultCfConfig[src]

type Encoder = DefaultCfConfig_encoder_c54e1b30964f574c<'lt>

impl Debug for DefaultCfConfig[src]

impl Default for DefaultCfConfig[src]

impl<'de> Deserialize<'de> for DefaultCfConfig where
    DefaultCfConfig: Default
[src]

impl PartialEq<DefaultCfConfig> for DefaultCfConfig[src]

impl Serialize for DefaultCfConfig[src]

impl StructuralPartialEq for DefaultCfConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for DefaultCfConfig

impl Send for DefaultCfConfig

impl Sync for DefaultCfConfig

impl Unpin for DefaultCfConfig

impl UnwindSafe for DefaultCfConfig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]