private static class CachingCollector.ScoreCachingCollector extends CachingCollector.NoScoreCachingCollector
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<float[]> |
scores |
contexts, docs, lastCollector, maxDocsToCache
in
Constructor and Description |
---|
ScoreCachingCollector(Collector in,
int maxDocsToCache) |
Modifier and Type | Method and Description |
---|---|
protected void |
collect(LeafCollector collector,
int i) |
boolean |
needsScores()
Ensure the scores are collected so they can be replayed, even if the wrapped collector doesn't need them.
|
protected void |
postCollect(CachingCollector.NoScoreCachingLeafCollector collector) |
protected CachingCollector.NoScoreCachingLeafCollector |
wrap(LeafCollector in,
int maxDocsToCache) |
getLeafCollector, invalidate, replay
create, create, create, isCached
toString
ScoreCachingCollector(Collector in, int maxDocsToCache)
protected CachingCollector.NoScoreCachingLeafCollector wrap(LeafCollector in, int maxDocsToCache)
wrap
in class CachingCollector.NoScoreCachingCollector
protected void postCollect(CachingCollector.NoScoreCachingLeafCollector collector)
postCollect
in class CachingCollector.NoScoreCachingCollector
public boolean needsScores()
needsScores
in interface Collector
needsScores
in class FilterCollector
true
if scores are needed.protected void collect(LeafCollector collector, int i) throws java.io.IOException
collect
in class CachingCollector.NoScoreCachingCollector
java.io.IOException