public class ExactStatsCache extends StatsCache
Global statistics are cached in the current request's context and discarded once the processing of the current request is complete. There's no support for longer-term caching, and each request needs to build the global statistics from scratch, even for repeating queries.
Modifier and Type | Class and Description |
---|---|
protected static class |
ExactStatsCache.ExactStatsSource |
StatsCache.StatsCacheMetrics
COL_STATS_KEY, FIELDS_KEY, pluginInfo, statsCacheMetrics, TERM_STATS_KEY, TERMS_KEY
Constructor and Description |
---|
ExactStatsCache() |
approxCheckMissingStats, clear, get, getCacheMetrics, init, mergeToGlobalStats, receiveGlobalStats, retrieveStatsRequest, returnLocalStats, sendGlobalStats
protected StatsSource doGet(SolrQueryRequest req)
doGet
in class StatsCache
protected ShardRequest doRetrieveStatsRequest(ResponseBuilder rb)
doRetrieveStatsRequest
in class StatsCache
protected void doMergeToGlobalStats(SolrQueryRequest req, List<ShardResponse> responses)
doMergeToGlobalStats
in class StatsCache
protected void addToPerShardColStats(SolrQueryRequest req, String shard, Map<String,CollectionStats> colStats)
protected void printStats(SolrQueryRequest req)
protected void addToPerShardTermStats(SolrQueryRequest req, String shard, String termStatsString)
protected void doReturnLocalStats(ResponseBuilder rb, SolrIndexSearcher searcher)
doReturnLocalStats
in class StatsCache
protected void doSendGlobalStats(ResponseBuilder rb, ShardRequest outgoing)
doSendGlobalStats
in class StatsCache
protected Map<String,CollectionStats> getPerShardColStats(ResponseBuilder rb, String shard)
protected TermStats getPerShardTermStats(SolrQueryRequest req, String t, String shard)
protected void doReceiveGlobalStats(SolrQueryRequest req)
doReceiveGlobalStats
in class StatsCache
protected void addToGlobalColStats(SolrQueryRequest req, Map.Entry<String,CollectionStats> e)
protected void addToGlobalTermStats(SolrQueryRequest req, Map.Entry<String,TermStats> e)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.