pub struct SchemaRoutingConfig {
pub enabled: bool,
pub auto_discover: bool,
pub refresh_interval: Duration,
pub learning_enabled: bool,
pub classification_threshold: u64,
pub default_temperature: DataTemperature,
pub default_workload: WorkloadType,
pub tables: Vec<TableConfig>,
pub node_capabilities: HashMap<String, NodeCapabilities>,
}Expand description
Schema-aware routing configuration
Fields§
§enabled: boolEnable schema-aware routing
auto_discover: boolAuto-discover schema from database
refresh_interval: DurationSchema refresh interval
learning_enabled: boolEnable learning classifier
classification_threshold: u64Classification update threshold (queries before reclassification)
default_temperature: DataTemperatureDefault temperature for new tables
default_workload: WorkloadTypeDefault workload for new tables
tables: Vec<TableConfig>Table configurations
node_capabilities: HashMap<String, NodeCapabilities>Node capability configurations
Implementations§
Source§impl SchemaRoutingConfig
impl SchemaRoutingConfig
Sourcepub fn builder() -> SchemaRoutingConfigBuilder
pub fn builder() -> SchemaRoutingConfigBuilder
Create a builder
Trait Implementations§
Source§impl Clone for SchemaRoutingConfig
impl Clone for SchemaRoutingConfig
Source§fn clone(&self) -> SchemaRoutingConfig
fn clone(&self) -> SchemaRoutingConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaRoutingConfig
impl Debug for SchemaRoutingConfig
Auto Trait Implementations§
impl Freeze for SchemaRoutingConfig
impl RefUnwindSafe for SchemaRoutingConfig
impl Send for SchemaRoutingConfig
impl Sync for SchemaRoutingConfig
impl Unpin for SchemaRoutingConfig
impl UnsafeUnpin for SchemaRoutingConfig
impl UnwindSafe for SchemaRoutingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more