#[non_exhaustive]pub struct KxDatabaseCacheConfigurationBuilder { /* private fields */ }Expand description
A builder for KxDatabaseCacheConfiguration.
Implementations§
source§impl KxDatabaseCacheConfigurationBuilder
impl KxDatabaseCacheConfigurationBuilder
sourcepub fn cache_type(self, input: impl Into<String>) -> Self
pub fn cache_type(self, input: impl Into<String>) -> Self
The type of disk cache. This parameter is used to map the database path to cache storage. The valid values are:
-
CACHE_1000 – This type provides at least 1000 MB/s disk access throughput.
sourcepub fn set_cache_type(self, input: Option<String>) -> Self
pub fn set_cache_type(self, input: Option<String>) -> Self
The type of disk cache. This parameter is used to map the database path to cache storage. The valid values are:
-
CACHE_1000 – This type provides at least 1000 MB/s disk access throughput.
sourcepub fn get_cache_type(&self) -> &Option<String>
pub fn get_cache_type(&self) -> &Option<String>
The type of disk cache. This parameter is used to map the database path to cache storage. The valid values are:
-
CACHE_1000 – This type provides at least 1000 MB/s disk access throughput.
sourcepub fn db_paths(self, input: impl Into<String>) -> Self
pub fn db_paths(self, input: impl Into<String>) -> Self
Appends an item to db_paths.
To override the contents of this collection use set_db_paths.
Specifies the portions of database that will be loaded into the cache for access.
sourcepub fn set_db_paths(self, input: Option<Vec<String>>) -> Self
pub fn set_db_paths(self, input: Option<Vec<String>>) -> Self
Specifies the portions of database that will be loaded into the cache for access.
sourcepub fn get_db_paths(&self) -> &Option<Vec<String>>
pub fn get_db_paths(&self) -> &Option<Vec<String>>
Specifies the portions of database that will be loaded into the cache for access.
sourcepub fn dataview_name(self, input: impl Into<String>) -> Self
pub fn dataview_name(self, input: impl Into<String>) -> Self
The name of the dataview to be used for caching historical data on disk.
sourcepub fn set_dataview_name(self, input: Option<String>) -> Self
pub fn set_dataview_name(self, input: Option<String>) -> Self
The name of the dataview to be used for caching historical data on disk.
sourcepub fn get_dataview_name(&self) -> &Option<String>
pub fn get_dataview_name(&self) -> &Option<String>
The name of the dataview to be used for caching historical data on disk.
sourcepub fn build(self) -> Result<KxDatabaseCacheConfiguration, BuildError>
pub fn build(self) -> Result<KxDatabaseCacheConfiguration, BuildError>
Consumes the builder and constructs a KxDatabaseCacheConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KxDatabaseCacheConfigurationBuilder
impl Clone for KxDatabaseCacheConfigurationBuilder
source§fn clone(&self) -> KxDatabaseCacheConfigurationBuilder
fn clone(&self) -> KxDatabaseCacheConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for KxDatabaseCacheConfigurationBuilder
impl Default for KxDatabaseCacheConfigurationBuilder
source§fn default() -> KxDatabaseCacheConfigurationBuilder
fn default() -> KxDatabaseCacheConfigurationBuilder
source§impl PartialEq for KxDatabaseCacheConfigurationBuilder
impl PartialEq for KxDatabaseCacheConfigurationBuilder
source§fn eq(&self, other: &KxDatabaseCacheConfigurationBuilder) -> bool
fn eq(&self, other: &KxDatabaseCacheConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for KxDatabaseCacheConfigurationBuilder
Auto Trait Implementations§
impl Freeze for KxDatabaseCacheConfigurationBuilder
impl RefUnwindSafe for KxDatabaseCacheConfigurationBuilder
impl Send for KxDatabaseCacheConfigurationBuilder
impl Sync for KxDatabaseCacheConfigurationBuilder
impl Unpin for KxDatabaseCacheConfigurationBuilder
impl UnwindSafe for KxDatabaseCacheConfigurationBuilder
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
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>
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>
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