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
Fields Modifier and Type Field Description (package private) java.util.List<float[]>
scores
-
Fields inherited from class org.apache.lucene.search.CachingCollector.NoScoreCachingCollector
contexts, docs, maxDocsToCache
-
Fields inherited from class org.apache.lucene.search.FilterCollector
in
-
-
Constructor Summary
Constructors Constructor Description ScoreCachingCollector(Collector in, int maxDocsToCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
collect(LeafCollector collector, int i)
ScoreMode
scoreMode()
Ensure the scores are collected so they can be replayed, even if the wrapped collector doesn't need them.protected CachingCollector.NoScoreCachingLeafCollector
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
-
-
-
-
Constructor Detail
-
ScoreCachingCollector
ScoreCachingCollector(Collector in, int maxDocsToCache)
-
-
Method Detail
-
wrap
protected CachingCollector.NoScoreCachingLeafCollector wrap(LeafCollector in, int maxDocsToCache)
- Overrides:
wrap
in classCachingCollector.NoScoreCachingCollector
-
scoreMode
public ScoreMode 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
protected void collect(LeafCollector collector, int i) throws java.io.IOException
- Overrides:
collect
in classCachingCollector.NoScoreCachingCollector
- Throws:
java.io.IOException
-
-