Package org.apache.solr.search.stats
Class LocalStatsCache
- java.lang.Object
-
- org.apache.solr.search.stats.StatsCache
-
- org.apache.solr.search.stats.LocalStatsCache
-
- All Implemented Interfaces:
PluginInfoInitialized
public class LocalStatsCache extends StatsCache
Default implementation that simply ignores global term statistics, and always uses local term statistics.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.search.stats.StatsCache
StatsCache.StatsCacheMetrics
-
-
Field Summary
-
Fields inherited from class org.apache.solr.search.stats.StatsCache
COL_STATS_KEY, FIELDS_KEY, pluginInfo, statsCacheMetrics, TERM_STATS_KEY, TERMS_KEY
-
-
Constructor Summary
Constructors Constructor Description LocalStatsCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StatsSource
doGet(SolrQueryRequest req)
protected void
doMergeToGlobalStats(SolrQueryRequest req, List<ShardResponse> responses)
protected void
doReceiveGlobalStats(SolrQueryRequest req)
protected ShardRequest
doRetrieveStatsRequest(ResponseBuilder rb)
protected void
doReturnLocalStats(ResponseBuilder rb, SolrIndexSearcher searcher)
protected void
doSendGlobalStats(ResponseBuilder rb, ShardRequest outgoing)
-
Methods inherited from class org.apache.solr.search.stats.StatsCache
approxCheckMissingStats, clear, get, getCacheMetrics, init, mergeToGlobalStats, receiveGlobalStats, retrieveStatsRequest, returnLocalStats, sendGlobalStats
-
-
-
-
Method Detail
-
doGet
protected StatsSource doGet(SolrQueryRequest req)
- Specified by:
doGet
in classStatsCache
-
doRetrieveStatsRequest
protected ShardRequest doRetrieveStatsRequest(ResponseBuilder rb)
- Specified by:
doRetrieveStatsRequest
in classStatsCache
-
doMergeToGlobalStats
protected void doMergeToGlobalStats(SolrQueryRequest req, List<ShardResponse> responses)
- Specified by:
doMergeToGlobalStats
in classStatsCache
-
doReturnLocalStats
protected void doReturnLocalStats(ResponseBuilder rb, SolrIndexSearcher searcher)
- Specified by:
doReturnLocalStats
in classStatsCache
-
doReceiveGlobalStats
protected void doReceiveGlobalStats(SolrQueryRequest req)
- Specified by:
doReceiveGlobalStats
in classStatsCache
-
doSendGlobalStats
protected void doSendGlobalStats(ResponseBuilder rb, ShardRequest outgoing)
- Specified by:
doSendGlobalStats
in classStatsCache
-
-