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) |
protected void |
postCollect(CachingCollector.NoScoreCachingLeafCollector collector) |
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) |
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 ScoreMode scoreMode()
scoreMode
in interface Collector
scoreMode
in class FilterCollector
protected void collect(LeafCollector collector, int i) throws java.io.IOException
collect
in class CachingCollector.NoScoreCachingCollector
java.io.IOException