#[non_exhaustive]pub struct KxDataviewSegmentConfiguration {
pub db_paths: Vec<String>,
pub volume_name: String,
pub on_demand: bool,
}Expand description
The configuration that contains the database path of the data that you want to place on each selected volume. Each segment must have a unique database path for each volume. If you do not explicitly specify any database path for a volume, they are accessible from the cluster through the default S3/object store segment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.db_paths: Vec<String>The database path of the data that you want to place on each selected volume for the segment. Each segment must have a unique database path for each volume.
volume_name: StringThe name of the volume where you want to add data.
on_demand: boolEnables on-demand caching on the selected database path when a particular file or a column of the database is accessed. When on demand caching is True, dataviews perform minimal loading of files on the filesystem as needed. When it is set to False, everything is cached. The default value is False.
Implementations§
source§impl KxDataviewSegmentConfiguration
impl KxDataviewSegmentConfiguration
sourcepub fn db_paths(&self) -> &[String]
pub fn db_paths(&self) -> &[String]
The database path of the data that you want to place on each selected volume for the segment. Each segment must have a unique database path for each volume.
sourcepub fn volume_name(&self) -> &str
pub fn volume_name(&self) -> &str
The name of the volume where you want to add data.
sourcepub fn on_demand(&self) -> bool
pub fn on_demand(&self) -> bool
Enables on-demand caching on the selected database path when a particular file or a column of the database is accessed. When on demand caching is True, dataviews perform minimal loading of files on the filesystem as needed. When it is set to False, everything is cached. The default value is False.
source§impl KxDataviewSegmentConfiguration
impl KxDataviewSegmentConfiguration
sourcepub fn builder() -> KxDataviewSegmentConfigurationBuilder
pub fn builder() -> KxDataviewSegmentConfigurationBuilder
Creates a new builder-style object to manufacture KxDataviewSegmentConfiguration.
Trait Implementations§
source§impl Clone for KxDataviewSegmentConfiguration
impl Clone for KxDataviewSegmentConfiguration
source§fn clone(&self) -> KxDataviewSegmentConfiguration
fn clone(&self) -> KxDataviewSegmentConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for KxDataviewSegmentConfiguration
impl PartialEq for KxDataviewSegmentConfiguration
source§fn eq(&self, other: &KxDataviewSegmentConfiguration) -> bool
fn eq(&self, other: &KxDataviewSegmentConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for KxDataviewSegmentConfiguration
Auto Trait Implementations§
impl Freeze for KxDataviewSegmentConfiguration
impl RefUnwindSafe for KxDataviewSegmentConfiguration
impl Send for KxDataviewSegmentConfiguration
impl Sync for KxDataviewSegmentConfiguration
impl Unpin for KxDataviewSegmentConfiguration
impl UnwindSafe for KxDataviewSegmentConfiguration
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