Class CachingHiveMetastoreConfig

java.lang.Object
io.trino.plugin.hive.metastore.cache.CachingHiveMetastoreConfig

public class CachingHiveMetastoreConfig extends Object
  • 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)