org.apache.solr.search.stats

## Class ExactSharedStatsCache

- java.lang.Object
- - org.apache.solr.search.stats.StatsCache
  - - org.apache.solr.search.stats.ExactStatsCache
    - - org.apache.solr.search.stats.ExactSharedStatsCache

- All Implemented Interfaces:
    PluginInfoInitialized

      public class ExactSharedStatsCache
      extends ExactStatsCache

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.solr.search.stats.ExactStatsCache

      `ExactStatsCache.ExactStatsSource`

  - ### Field Summary

    - ### Fields inherited from class org.apache.solr.search.stats.StatsCache

      `COL_STATS_KEY, TERM_STATS_KEY, TERMS_KEY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExactSharedStatsCache()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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)`
    `StatsSource` | `get(SolrQueryRequest req)` Prepare local `StatsSource` to provide stats information to perform local scoring (to be precise, to build a local `Weight` from the query).
    `protected Map<String,CollectionStats>` | `getPerShardColStats(ResponseBuilder rb, String shard)`
    `protected TermStats` | `getPerShardTermStats(SolrQueryRequest req, String t, String shard)`
    `void` | `init(PluginInfo info)`
    `protected void` | `printStats(SolrQueryRequest req)`

    - ### Methods inherited from class org.apache.solr.search.stats.ExactStatsCache

      `mergeToGlobalStats, receiveGlobalStats, retrieveStatsRequest, returnLocalStats, sendGlobalStats`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ExactSharedStatsCache

          public ExactSharedStatsCache()

  - ### Method Detail

    - #### get

          public StatsSource get(SolrQueryRequest req)

      Description copied from class: `StatsCache`
      Prepare local `StatsSource` to provide stats information to perform local scoring (to be precise, to build a local `Weight` from the query).
      Overrides:
        `get` in class `ExactStatsCache`
      Parameters:
        `req` - query request
      Returns:
        an instance of `StatsSource` to use in creating a query `Weight`

    - #### init

          public void init(PluginInfo info)

      Specified by:
        `init` in interface `PluginInfoInitialized`
      Overrides:
        `init` in class `ExactStatsCache`

    - #### addToPerShardColStats

          protected void addToPerShardColStats(SolrQueryRequest req,
                                               String shard,
                                               Map<String,CollectionStats> colStats)

      Overrides:
        `addToPerShardColStats` in class `ExactStatsCache`

    - #### printStats

          protected void printStats(SolrQueryRequest req)

      Overrides:
        `printStats` in class `ExactStatsCache`

    - #### addToPerShardTermStats

          protected void addToPerShardTermStats(SolrQueryRequest req,
                                                String shard,
                                                String termStatsString)

      Overrides:
        `addToPerShardTermStats` in class `ExactStatsCache`

    - #### getPerShardColStats

          protected Map<String,CollectionStats> getPerShardColStats(ResponseBuilder rb,
                                                                    String shard)

      Overrides:
        `getPerShardColStats` in class `ExactStatsCache`

    - #### getPerShardTermStats

          protected TermStats getPerShardTermStats(SolrQueryRequest req,
                                                   String t,
                                                   String shard)

      Overrides:
        `getPerShardTermStats` in class `ExactStatsCache`

    - #### addToGlobalColStats

          protected void addToGlobalColStats(SolrQueryRequest req,
                                             Map.Entry<String,CollectionStats> e)

      Overrides:
        `addToGlobalColStats` in class `ExactStatsCache`

    - #### addToGlobalTermStats

          protected void addToGlobalTermStats(SolrQueryRequest req,
                                              Map.Entry<String,TermStats> e)

      Overrides:
        `addToGlobalTermStats` in class `ExactStatsCache`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.