Package org.apache.solr.search
Class SolrCacheBase
- java.lang.Object
- 
- org.apache.solr.search.SolrCacheBase
 
- 
- Direct Known Subclasses:
- FastLRUCache,- LRUCache,- Metrics
 
 public abstract class SolrCacheBase extends Object Common base class of reusable functionality for SolrCaches
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSolrCacheBase.AutoWarmCountRefDecides how many things to autowarm based on the size of another cache
 - 
Field SummaryFields Modifier and Type Field Description protected SolrCacheBase.AutoWarmCountRefautowarmprotected CacheRegeneratorregenerator
 - 
Constructor SummaryConstructors Constructor Description SolrCacheBase()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static floatcalcHitRatio(long lookups, long hits)Returns a "Hit Ratio" (ie: max of 1.00, not a percentage) suitable for display purposes.protected StringgetAutowarmDescription()SolrInfoBean.CategorygetCategory()SolrCache.StategetState()StringgetVersion()voidinit(Map<String,String> args, CacheRegenerator regenerator)protected booleanisAutowarmingOn()Stringname()voidsetState(SolrCache.State state)
 
- 
- 
- 
Field Detail- 
regeneratorprotected CacheRegenerator regenerator 
 - 
autowarmprotected SolrCacheBase.AutoWarmCountRef autowarm 
 
- 
 - 
Method Detail- 
calcHitRatioprotected static float calcHitRatio(long lookups, long hits)Returns a "Hit Ratio" (ie: max of 1.00, not a percentage) suitable for display purposes.
 - 
getVersionpublic String getVersion() 
 - 
getCategorypublic SolrInfoBean.Category getCategory() 
 - 
initpublic void init(Map<String,String> args, CacheRegenerator regenerator) 
 - 
getAutowarmDescriptionprotected String getAutowarmDescription() 
 - 
isAutowarmingOnprotected boolean isAutowarmingOn() 
 - 
setStatepublic void setState(SolrCache.State state) 
 - 
getStatepublic SolrCache.State getState() 
 - 
namepublic String name() 
 
- 
 
-