Package 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 localSolrIndexSearcher
to provide local statistics.
-
-
Constructor Summary
Constructors Constructor Description LocalStatsSource(StatsCache.StatsCacheMetrics metrics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.CollectionStatistics
collectionStatistics(SolrIndexSearcher localSearcher, String field)
org.apache.lucene.search.TermStatistics
termStatistics(SolrIndexSearcher localSearcher, org.apache.lucene.index.Term term, int docFreq, long totalTermFreq)
-
-
-
Constructor Detail
-
LocalStatsSource
public LocalStatsSource(StatsCache.StatsCacheMetrics metrics)
-
-
Method Detail
-
termStatistics
public org.apache.lucene.search.TermStatistics termStatistics(SolrIndexSearcher localSearcher, org.apache.lucene.index.Term term, int docFreq, long totalTermFreq) throws IOException
- Specified by:
termStatistics
in classStatsSource
- Throws:
IOException
-
collectionStatistics
public org.apache.lucene.search.CollectionStatistics collectionStatistics(SolrIndexSearcher localSearcher, String field) throws IOException
- Specified by:
collectionStatistics
in classStatsSource
- Throws:
IOException
-
-