pub struct AutoBuildPolicy {
pub policy_type: Option<AutoBuildPolicyType>,
pub timing: String,
pub period_in_second: u64,
pub row_count_increment: u64,
pub row_count_increment_ratio: f64,
}Expand description
auto build index strategy
Fields§
§policy_type: Option<AutoBuildPolicyType>the policy type of the index: timing: regularly build indexes, only build once, periodical: periodically building indexes, row_count_increment: build index based on new added rows.
timing: Stringtime format: LOCAL(%Y-%m-%d %H:%M:%S) and UTC(%Y-%m-%dT%H:%M:%Z), only build once when the policyType is ‘timing’ and it takes effect, When policyType is ‘periodic’, the incoming time serves as the start time of the periodic policy.
period_in_second: u64periodInSecond: the interval of periodic building indexes, build index periodically when policyType is ‘periodic’.
row_count_increment: u64build an index when the number of rows in a tablet increases or decreases by more than rowCountIncrement
row_count_increment_ratio: f64build index once when the percentage of rows added or decreased by the tablet is greater than rowCountIncrementRatio
Trait Implementations§
Source§impl Clone for AutoBuildPolicy
impl Clone for AutoBuildPolicy
Source§fn clone(&self) -> AutoBuildPolicy
fn clone(&self) -> AutoBuildPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more