Module org.apache.lucene.core
Package org.apache.lucene.search
Class CachingCollector.ScoreCachingCollector
java.lang.Object
org.apache.lucene.search.FilterCollector
org.apache.lucene.search.CachingCollector
org.apache.lucene.search.CachingCollector.NoScoreCachingCollector
org.apache.lucene.search.CachingCollector.ScoreCachingCollector
- All Implemented Interfaces:
Collector
- Enclosing class:
CachingCollector
private static class CachingCollector.ScoreCachingCollector
extends CachingCollector.NoScoreCachingCollector
-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.CachingCollector.NoScoreCachingCollector
contexts, docs, maxDocsToCacheFields inherited from class org.apache.lucene.search.FilterCollector
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcollect(LeafCollector collector, int i) Ensure the scores are collected so they can be replayed, even if the wrapped collector doesn't need them.wrap(LeafCollector in, int maxDocsToCache) Methods inherited from class org.apache.lucene.search.CachingCollector.NoScoreCachingCollector
getLeafCollector, invalidate, replayMethods inherited from class org.apache.lucene.search.CachingCollector
create, create, create, isCachedMethods inherited from class org.apache.lucene.search.FilterCollector
setWeight, toString
-
Field Details
-
scores
List<float[]> scores
-
-
Constructor Details
-
ScoreCachingCollector
ScoreCachingCollector(Collector in, int maxDocsToCache)
-
-
Method Details
-
wrap
- Overrides:
wrapin classCachingCollector.NoScoreCachingCollector
-
scoreMode
Ensure the scores are collected so they can be replayed, even if the wrapped collector doesn't need them.- Specified by:
scoreModein interfaceCollector- Overrides:
scoreModein classFilterCollector
-
collect
- Overrides:
collectin classCachingCollector.NoScoreCachingCollector- Throws:
IOException
-