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.StatsCacheMetricsCOL_STATS_KEY, FIELDS_KEY, pluginInfo, statsCacheMetrics, TERM_STATS_KEY, TERMS_KEY| Constructor and Description |
|---|
ExactStatsCache() |
approxCheckMissingStats, clear, get, getCacheMetrics, init, mergeToGlobalStats, receiveGlobalStats, retrieveStatsRequest, returnLocalStats, sendGlobalStatsprotected StatsSource doGet(SolrQueryRequest req)
doGet in class StatsCacheprotected ShardRequest doRetrieveStatsRequest(ResponseBuilder rb)
doRetrieveStatsRequest in class StatsCacheprotected void doMergeToGlobalStats(SolrQueryRequest req, List<ShardResponse> responses)
doMergeToGlobalStats in class StatsCacheprotected 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 StatsCacheprotected void doSendGlobalStats(ResponseBuilder rb, ShardRequest outgoing)
doSendGlobalStats in class StatsCacheprotected 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 StatsCacheprotected void addToGlobalColStats(SolrQueryRequest req, Map.Entry<String,CollectionStats> e)
protected void addToGlobalTermStats(SolrQueryRequest req, Map.Entry<String,TermStats> e)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.