pub struct CacheManagerConfig {
pub table_files_statistics_cache: Option<FileStatisticsCache>,
pub list_files_cache: Option<ListFilesCache>,
}
Fields§
§table_files_statistics_cache: Option<FileStatisticsCache>
Enable cache of files statistics when listing files. Avoid get same file statistics repeatedly in same datafusion session. Default is disable. Fow now only supports Parquet files.
list_files_cache: Option<ListFilesCache>
Enable cache of file metadata when listing files.
This setting avoids listing file meta of the same path repeatedly
in same session, which may be expensive in certain situations (e.g. remote object storage).
Note that if this option is enabled, DataFusion will not see any updates to the underlying
location.
Default is disable.
Implementations§
source§impl CacheManagerConfig
impl CacheManagerConfig
pub fn with_files_statistics_cache( self, cache: Option<FileStatisticsCache>, ) -> Self
pub fn with_list_files_cache(self, cache: Option<ListFilesCache>) -> Self
Trait Implementations§
source§impl Clone for CacheManagerConfig
impl Clone for CacheManagerConfig
source§fn clone(&self) -> CacheManagerConfig
fn clone(&self) -> CacheManagerConfig
Returns a copy 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 Default for CacheManagerConfig
impl Default for CacheManagerConfig
source§fn default() -> CacheManagerConfig
fn default() -> CacheManagerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CacheManagerConfig
impl !RefUnwindSafe for CacheManagerConfig
impl Send for CacheManagerConfig
impl Sync for CacheManagerConfig
impl Unpin for CacheManagerConfig
impl !UnwindSafe for CacheManagerConfig
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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