org.apache.solr.search.stats

## Class LocalStatsSource

- java.lang.Object
- - org.apache.solr.search.stats.StatsSource
  - - org.apache.solr.search.stats.LocalStatsSource

-     public final class LocalStatsSource
      extends StatsSource

  Convenience class that wraps a local `SolrIndexSearcher` to provide local statistics.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LocalStatsSource()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `CollectionStatistics` | `collectionStatistics(SolrIndexSearcher localSearcher, String field)`
    `TermStatistics` | `termStatistics(SolrIndexSearcher localSearcher, Term term, TermContext context)`

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

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

- - ### Constructor Detail

    - #### LocalStatsSource

          public LocalStatsSource()

  - ### Method Detail

    - #### termStatistics

          public TermStatistics termStatistics(SolrIndexSearcher localSearcher,
                                               Term term,
                                               TermContext context)
                                        throws IOException

      Specified by:
        `termStatistics` in class `StatsSource`
      Throws:
        `IOException`

    - #### collectionStatistics

          public CollectionStatistics collectionStatistics(SolrIndexSearcher localSearcher,
                                                           String field)
                                                    throws IOException

      Specified by:
        `collectionStatistics` in class `StatsSource`
      Throws:
        `IOException`

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