Class SolrCacheBase

java.lang.Object
org.apache.solr.search.SolrCacheBase
Direct Known Subclasses:
CaffeineCache, Metrics

public abstract class SolrCacheBase extends Object
Common base class of reusable functionality for SolrCaches
  • Field Details

  • Constructor Details

    • SolrCacheBase

      public SolrCacheBase()
  • Method Details

    • calcHitRatio

      protected static float calcHitRatio(long lookups, long hits)
      Returns a "Hit Ratio" (ie: max of 1.00, not a percentage) suitable for display purposes.
    • getVersion

      public String getVersion()
    • getCategory

      public SolrInfoBean.Category getCategory()
    • init

      public void init(Map<String,String> args, CacheRegenerator regenerator)
    • getAutowarmDescription

      protected String getAutowarmDescription()
    • isAutowarmingOn

      protected boolean isAutowarmingOn()
    • setState

      public void setState(SolrCache.State state)
    • getState

      public SolrCache.State getState()
    • name

      public String name()