Class CachingHiveMetastoreConfig
java.lang.Object
io.trino.plugin.hive.metastore.cache.CachingHiveMetastoreConfig
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Min(1L) int@Min(1L) long@NotNull io.airlift.units.Duration@NotNull Optional<@MinDuration("1ms") io.airlift.units.Duration> @NotNull io.airlift.units.DurationbooleanbooleanbooleanbooleansetCacheMissing(boolean cacheMissing) setCacheMissingPartitions(boolean cacheMissingPartitions) setCacheMissingStats(boolean cacheMissingStats) setMaxMetastoreRefreshThreads(int maxMetastoreRefreshThreads) setMetastoreCacheMaximumSize(long metastoreCacheMaximumSize) setMetastoreCacheTtl(io.airlift.units.Duration metastoreCacheTtl) setMetastoreRefreshInterval(io.airlift.units.Duration metastoreRefreshInterval) setPartitionCacheEnabled(boolean enabled) setStatsCacheTtl(io.airlift.units.Duration statsCacheTtl)
-
Field Details
-
DEFAULT_STATS_CACHE_TTL
public static final io.airlift.units.Duration DEFAULT_STATS_CACHE_TTL
-
-
Constructor Details
-
CachingHiveMetastoreConfig
public CachingHiveMetastoreConfig()
-
-
Method Details
-
getMetastoreCacheTtl
@NotNull public @NotNull io.airlift.units.Duration getMetastoreCacheTtl() -
setMetastoreCacheTtl
@Config("hive.metastore-cache-ttl") public CachingHiveMetastoreConfig setMetastoreCacheTtl(io.airlift.units.Duration metastoreCacheTtl) -
getStatsCacheTtl
@NotNull public @NotNull io.airlift.units.Duration getStatsCacheTtl() -
setStatsCacheTtl
@Config("hive.metastore-stats-cache-ttl") public CachingHiveMetastoreConfig setStatsCacheTtl(io.airlift.units.Duration statsCacheTtl) -
getMetastoreRefreshInterval
@NotNull public @NotNull Optional<@MinDuration("1ms") io.airlift.units.Duration> getMetastoreRefreshInterval() -
setMetastoreRefreshInterval
@Config("hive.metastore-refresh-interval") public CachingHiveMetastoreConfig setMetastoreRefreshInterval(io.airlift.units.Duration metastoreRefreshInterval) -
getMetastoreCacheMaximumSize
@Min(1L) public @Min(1L) long getMetastoreCacheMaximumSize() -
setMetastoreCacheMaximumSize
@Config("hive.metastore-cache-maximum-size") public CachingHiveMetastoreConfig setMetastoreCacheMaximumSize(long metastoreCacheMaximumSize) -
getMaxMetastoreRefreshThreads
@Min(1L) public @Min(1L) int getMaxMetastoreRefreshThreads() -
setMaxMetastoreRefreshThreads
@Config("hive.metastore-refresh-max-threads") public CachingHiveMetastoreConfig setMaxMetastoreRefreshThreads(int maxMetastoreRefreshThreads) -
isPartitionCacheEnabled
public boolean isPartitionCacheEnabled() -
setPartitionCacheEnabled
@Config("hive.metastore-cache.cache-partitions") public CachingHiveMetastoreConfig setPartitionCacheEnabled(boolean enabled) -
isCacheMissing
public boolean isCacheMissing() -
setCacheMissing
@Config("hive.metastore-cache.cache-missing") public CachingHiveMetastoreConfig setCacheMissing(boolean cacheMissing) -
isCacheMissingPartitions
public boolean isCacheMissingPartitions() -
setCacheMissingPartitions
@Config("hive.metastore-cache.cache-missing-partitions") public CachingHiveMetastoreConfig setCacheMissingPartitions(boolean cacheMissingPartitions) -
isCacheMissingStats
public boolean isCacheMissingStats() -
setCacheMissingStats
@Config("hive.metastore-cache.cache-missing-stats") public CachingHiveMetastoreConfig setCacheMissingStats(boolean cacheMissingStats)
-