public class ExactSharedStatsCache extends ExactStatsCache
Global statistics are accumulated in the instance of this component (with the same life-cycle as
SolrSearcher), in unbounded maps. NOTE: This may lead to excessive memory usage, in which case
a LRUStatsCache
should be considered.
ExactStatsCache.ExactStatsSource
StatsCache.StatsCacheMetrics
COL_STATS_KEY, FIELDS_KEY, pluginInfo, statsCacheMetrics, TERM_STATS_KEY, TERMS_KEY
Constructor and Description |
---|
ExactSharedStatsCache() |
Modifier and Type | Method and Description |
---|---|
protected void |
addToGlobalColStats(SolrQueryRequest req,
Map.Entry<String,CollectionStats> e) |
protected void |
addToGlobalTermStats(SolrQueryRequest req,
Map.Entry<String,TermStats> e) |
protected void |
addToPerShardColStats(SolrQueryRequest req,
String shard,
Map<String,CollectionStats> colStats) |
protected void |
addToPerShardTermStats(SolrQueryRequest req,
String shard,
String termStatsString) |
void |
clear()
Clear cached statistics.
|
protected StatsSource |
doGet(SolrQueryRequest req) |
protected Map<String,CollectionStats> |
getPerShardColStats(ResponseBuilder rb,
String shard) |
protected TermStats |
getPerShardTermStats(SolrQueryRequest req,
String t,
String shard) |
protected void |
printStats(SolrQueryRequest req) |
doMergeToGlobalStats, doReceiveGlobalStats, doRetrieveStatsRequest, doReturnLocalStats, doSendGlobalStats
approxCheckMissingStats, get, getCacheMetrics, init, mergeToGlobalStats, receiveGlobalStats, retrieveStatsRequest, returnLocalStats, sendGlobalStats
protected StatsSource doGet(SolrQueryRequest req)
doGet
in class ExactStatsCache
public void clear()
StatsCache
clear
in class StatsCache
protected void addToPerShardColStats(SolrQueryRequest req, String shard, Map<String,CollectionStats> colStats)
addToPerShardColStats
in class ExactStatsCache
protected void printStats(SolrQueryRequest req)
printStats
in class ExactStatsCache
protected void addToPerShardTermStats(SolrQueryRequest req, String shard, String termStatsString)
addToPerShardTermStats
in class ExactStatsCache
protected Map<String,CollectionStats> getPerShardColStats(ResponseBuilder rb, String shard)
getPerShardColStats
in class ExactStatsCache
protected TermStats getPerShardTermStats(SolrQueryRequest req, String t, String shard)
getPerShardTermStats
in class ExactStatsCache
protected void addToGlobalColStats(SolrQueryRequest req, Map.Entry<String,CollectionStats> e)
addToGlobalColStats
in class ExactStatsCache
protected void addToGlobalTermStats(SolrQueryRequest req, Map.Entry<String,TermStats> e)
addToGlobalTermStats
in class ExactStatsCache
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.