Struct raftstore::coprocessor::config::Config[][src]

pub struct Config {
    pub split_region_on_table: bool,
    pub batch_split_limit: u64,
    pub region_max_size: ReadableSize,
    pub region_split_size: ReadableSize,
    pub region_max_keys: u64,
    pub region_split_keys: u64,
    pub consistency_check_method: ConsistencyCheckMethod,
    pub perf_level: PerfLevel,
}

Fields

split_region_on_table: bool

When it is true, it will try to split a region with table prefix if that region crosses tables.

batch_split_limit: u64

For once split check, there are several split_key produced for batch. batch_split_limit limits the number of produced split-key for one batch.

region_max_size: ReadableSize

When region [a,e) size meets region_max_size, it will be split into several regions [a,b), [b,c), [c,d), [d,e). And the size of [a,b), [b,c), [c,d) will be region_split_size (maybe a little larger).

region_split_size: ReadableSizeregion_max_keys: u64

When the number of keys in region [a,e) meets the region_max_keys, it will be split into two several regions [a,b), [b,c), [c,d), [d,e). And the number of keys in [a,b), [b,c), [c,d) will be region_split_keys.

region_split_keys: u64consistency_check_method: ConsistencyCheckMethod

ConsistencyCheckMethod can not be chanaged dynamically.

perf_level: PerfLevel

Implementations

impl Config[src]

pub fn validate(&self) -> Result<()>[src]

Trait Implementations

impl Clone for Config[src]

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

type Encoder = Config_encoder_c626a200461aa863<'lt>

impl Debug for Config[src]

impl Default for Config[src]

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

impl PartialEq<Config> for Config[src]

impl Serialize for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

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]