pub struct SchemaRoutingConfigBuilder { /* private fields */ }Expand description
Builder for SchemaRoutingConfig
Implementations§
Source§impl SchemaRoutingConfigBuilder
impl SchemaRoutingConfigBuilder
Sourcepub fn auto_discover(self, auto_discover: bool) -> Self
pub fn auto_discover(self, auto_discover: bool) -> Self
Enable auto-discovery of schema
Sourcepub fn refresh_interval(self, interval: Duration) -> Self
pub fn refresh_interval(self, interval: Duration) -> Self
Set schema refresh interval
Sourcepub fn learning_enabled(self, enabled: bool) -> Self
pub fn learning_enabled(self, enabled: bool) -> Self
Enable learning classifier
Sourcepub fn classification_threshold(self, threshold: u64) -> Self
pub fn classification_threshold(self, threshold: u64) -> Self
Set classification threshold
Sourcepub fn default_temperature(self, temp: DataTemperature) -> Self
pub fn default_temperature(self, temp: DataTemperature) -> Self
Set default temperature for new tables
Sourcepub fn default_workload(self, workload: WorkloadType) -> Self
pub fn default_workload(self, workload: WorkloadType) -> Self
Set default workload for new tables
Sourcepub fn add_table(self, table: TableConfig) -> Self
pub fn add_table(self, table: TableConfig) -> Self
Add table configuration
Sourcepub fn add_node_capability(
self,
node_name: impl Into<String>,
caps: NodeCapabilities,
) -> Self
pub fn add_node_capability( self, node_name: impl Into<String>, caps: NodeCapabilities, ) -> Self
Add node capability configuration
Sourcepub fn build(self) -> SchemaRoutingConfig
pub fn build(self) -> SchemaRoutingConfig
Build the configuration
Trait Implementations§
Source§impl Debug for SchemaRoutingConfigBuilder
impl Debug for SchemaRoutingConfigBuilder
Source§impl Default for SchemaRoutingConfigBuilder
impl Default for SchemaRoutingConfigBuilder
Source§fn default() -> SchemaRoutingConfigBuilder
fn default() -> SchemaRoutingConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SchemaRoutingConfigBuilder
impl RefUnwindSafe for SchemaRoutingConfigBuilder
impl Send for SchemaRoutingConfigBuilder
impl Sync for SchemaRoutingConfigBuilder
impl Unpin for SchemaRoutingConfigBuilder
impl UnsafeUnpin for SchemaRoutingConfigBuilder
impl UnwindSafe for SchemaRoutingConfigBuilder
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> 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