Package org.apache.datafusion
Class CacheManagerOptions
java.lang.Object
org.apache.datafusion.CacheManagerOptions
Configuration for DataFusion's built-in
CacheManager. Pass an instance to SessionContextBuilder.cacheManager(CacheManagerOptions) to turn on any of the three
upstream-provided caches at session construction time.
The three caches are independent; calling one setter does not affect the others. A setter that is never called leaves the upstream default in place — so existing callers that don't touch this builder see no behavioral change.
CacheManagerOptions.Builder.fileMetadataCache(long)— caches file-embedded metadata (e.g. parquet footers / page metadata). Backed byDefaultFilesMetadataCachewith the supplied byte cap.CacheManagerOptions.Builder.listFilesCache(long, Duration)— caches results of object-storelistoperations. Backed byDefaultListFilesCachewith the supplied byte cap and optional TTL (null= infinite).CacheManagerOptions.Builder.fileStatisticsCache(boolean)— caches per-file row counts and column statistics. Backed byDefaultFileStatisticsCache; no bytewise cap exists upstream.
This v1 surface configures the built-in cache implementations. Plugging custom Java cache implementations through a JNI upcall path is intentionally out of scope — every cache lookup is a hot path during scans, and routing them through Java would defeat the cache.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheManagerOptions.Builderbuilder()Begin building aCacheManagerOptionsinstance.
-
Method Details
-
builder
Begin building aCacheManagerOptionsinstance.
-