private static class CachingCollector.NoScoreCachingCollector extends CachingCollector
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.List<LeafReaderContext> |
contexts |
(package private) java.util.List<int[]> |
docs |
(package private) CachingCollector.NoScoreCachingLeafCollector |
lastCollector |
(package private) int |
maxDocsToCache |
in| Constructor and Description |
|---|
NoScoreCachingCollector(Collector in,
int maxDocsToCache) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collect(LeafCollector collector,
int i) |
LeafCollector |
getLeafCollector(LeafReaderContext context)
Create a new
collector to collect the given context. |
protected void |
invalidate() |
protected void |
postCollect(CachingCollector.NoScoreCachingLeafCollector collector) |
private void |
postCollection() |
void |
replay(Collector other)
Replays the cached doc IDs (and scores) to the given Collector.
|
protected CachingCollector.NoScoreCachingLeafCollector |
wrap(LeafCollector in,
int maxDocsToCache) |
create, create, create, isCachedscoreMode, toStringjava.util.List<LeafReaderContext> contexts
java.util.List<int[]> docs
int maxDocsToCache
CachingCollector.NoScoreCachingLeafCollector lastCollector
NoScoreCachingCollector(Collector in, int maxDocsToCache)
protected CachingCollector.NoScoreCachingLeafCollector wrap(LeafCollector in, int maxDocsToCache)
public LeafCollector getLeafCollector(LeafReaderContext context) throws java.io.IOException
Collectorcollector to collect the given context.getLeafCollector in interface CollectorgetLeafCollector in class FilterCollectorcontext - next atomic reader contextjava.io.IOExceptionprotected void invalidate()
protected void postCollect(CachingCollector.NoScoreCachingLeafCollector collector)
private void postCollection()
protected void collect(LeafCollector collector, int i) throws java.io.IOException
java.io.IOExceptionpublic void replay(Collector other) throws java.io.IOException
CachingCollectorother.setScorer as well as scores are not replayed.replay in class CachingCollectorjava.io.IOException