MCPcopy Create free account
hub / github.com/apache/datafusion / with_cache

Method with_cache

datafusion/catalog-listing/src/table.rs:262–265  ·  view source on GitHub ↗

Set the [`FileStatisticsCache`] used to cache parquet file statistics. Setting a statistics cache on the `SessionContext` can avoid refetching statistics multiple times in the same session.

(mut self, cache: Option<Arc<dyn FileStatisticsCache>>)

Source from the content-addressed store, hash-verified

260 /// multiple times in the same session.
261 ///
262 pub fn with_cache(mut self, cache: Option<Arc<dyn FileStatisticsCache>>) -> Self {
263 self.collected_statistics = cache;
264 self
265 }
266
267 /// Specify the SQL definition for this table, if any
268 pub fn with_definition(mut self, definition: Option<String>) -> Self {

Callers 11

try_into_logical_planMethod · 0.80
createMethod · 0.80
_read_typeMethod · 0.80
get_listing_tableFunction · 0.80
get_tableMethod · 0.80
get_tableMethod · 0.80
get_tableMethod · 0.80
get_tableMethod · 0.80
get_tableMethod · 0.80
get_tableMethod · 0.80

Calls

no outgoing calls

Tested by 1

get_listing_tableFunction · 0.64