private static class CachingCollector.ScoreCachingCollector extends CachingCollector.NoScoreCachingCollector
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List<float[]> |
scores |
contexts, docs, lastCollector, maxDocsToCachein| 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, replaycreate, create, create, isCachedtoStringScoreCachingCollector(Collector in, int maxDocsToCache)
protected CachingCollector.NoScoreCachingLeafCollector wrap(LeafCollector in, int maxDocsToCache)
wrap in class CachingCollector.NoScoreCachingCollectorprotected void postCollect(CachingCollector.NoScoreCachingLeafCollector collector)
postCollect in class CachingCollector.NoScoreCachingCollectorpublic ScoreMode scoreMode()
scoreMode in interface CollectorscoreMode in class FilterCollectorprotected void collect(LeafCollector collector, int i) throws java.io.IOException
collect in class CachingCollector.NoScoreCachingCollectorjava.io.IOException