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, lastCollector, maxDocsToCache
Fields inherited from class org.apache.lucene.search.FilterCollector
in
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
collect
(LeafCollector collector, int i) protected void
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, replay
Methods inherited from class org.apache.lucene.search.CachingCollector
create, create, create, isCached
Methods 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:
wrap
in classCachingCollector.NoScoreCachingCollector
-
postCollect
- Overrides:
postCollect
in classCachingCollector.NoScoreCachingCollector
-
scoreMode
Ensure the scores are collected so they can be replayed, even if the wrapped collector doesn't need them.- Specified by:
scoreMode
in interfaceCollector
- Overrides:
scoreMode
in classFilterCollector
-
collect
- Overrides:
collect
in classCachingCollector.NoScoreCachingCollector
- Throws:
IOException
-