Class CachingHiveMetastoreConfig
java.lang.Object
io.trino.plugin.hive.metastore.cache.CachingHiveMetastoreConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@jakarta.validation.constraints.Min(1L) int@jakarta.validation.constraints.Min(1L) long@NotNull io.airlift.units.Duration@NotNull Optional<@MinDuration("1ms") io.airlift.units.Duration>@NotNull io.airlift.units.DurationbooleanbooleansetCacheMissing(boolean cacheMissing) 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)
-
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 @jakarta.validation.constraints.Min(1L) long getMetastoreCacheMaximumSize() -
setMetastoreCacheMaximumSize
@Config("hive.metastore-cache-maximum-size") public CachingHiveMetastoreConfig setMetastoreCacheMaximumSize(long metastoreCacheMaximumSize) -
getMaxMetastoreRefreshThreads
@Min(1L) public @jakarta.validation.constraints.Min(1L) int getMaxMetastoreRefreshThreads() -
setMaxMetastoreRefreshThreads
@Config("hive.metastore-refresh-max-threads") public CachingHiveMetastoreConfig setMaxMetastoreRefreshThreads(int maxMetastoreRefreshThreads) -
isCacheMissing
public boolean isCacheMissing() -
setCacheMissing
@Config("hive.metastore-cache.cache-missing") public CachingHiveMetastoreConfig setCacheMissing(boolean cacheMissing) -
isPartitionCacheEnabled
public boolean isPartitionCacheEnabled() -
setPartitionCacheEnabled
@Config("hive.metastore-cache.cache-partitions") public CachingHiveMetastoreConfig setPartitionCacheEnabled(boolean enabled)
-