Package org.apache.datafusion
Class CacheManagerOptions.Builder
java.lang.Object
org.apache.datafusion.CacheManagerOptions.Builder
- Enclosing class:
- CacheManagerOptions
Builder for
CacheManagerOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()fileMetadataCache(long maxBytes) Enable the file-embedded metadata cache (parquet footers, page metadata) with the given byte cap.fileStatisticsCache(boolean enabled) Enable the file-statistics cache (per-file row counts / column statistics).listFilesCache(long maxBytes, Duration ttl) Enable the list-files cache with the given byte cap and TTL.
-
Method Details
-
fileMetadataCache
Enable the file-embedded metadata cache (parquet footers, page metadata) with the given byte cap. The cap is the budget the upstreamDefaultFilesMetadataCacheuses to evict entries;0is legal and means "construct the cache but with a 0-byte budget" (effectively disabled but observable in stats).- Throws:
IllegalArgumentException- ifmaxBytesis negative.
-
listFilesCache
Enable the list-files cache with the given byte cap and TTL. Passnullforttlto use upstream's "no expiration" semantics (entries are evicted only by capacity pressure).- Throws:
IllegalArgumentException- ifmaxBytesis negative orttlis negative.
-
fileStatisticsCache
Enable the file-statistics cache (per-file row counts / column statistics). Whenenabledistrue, the upstreamDefaultFileStatisticsCacheis installed. Whenfalse, the slot is explicitly set to disabled in the wire format — the same end-state as never calling this setter, but distinguishable for testing. -
build
-