Package org.apache.solr.search
Class SolrCacheBase
java.lang.Object
org.apache.solr.search.SolrCacheBase
- Direct Known Subclasses:
CaffeineCache,Metrics
Common base class of reusable functionality for SolrCaches
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDecides how many things to autowarm based on the size of another cache -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SolrCacheBase.AutoWarmCountRefprotected CacheRegenerator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static floatcalcHitRatio(long lookups, long hits) Returns a "Hit Ratio" (ie: max of 1.00, not a percentage) suitable for display purposes.protected StringgetState()voidinit(Map<String, String> args, CacheRegenerator regenerator) protected booleanname()voidsetState(SolrCache.State state)
-
Field Details
-
regenerator
-
autowarm
-
-
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
-
getCategory
-
init
-
getAutowarmDescription
-
isAutowarmingOn
protected boolean isAutowarmingOn() -
setState
-
getState
-
name
-