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, isCached
scoreMode, toString
java.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
Collector
collector
to collect the given context.getLeafCollector
in interface Collector
getLeafCollector
in class FilterCollector
context
- next atomic reader contextjava.io.IOException
protected void invalidate()
protected void postCollect(CachingCollector.NoScoreCachingLeafCollector collector)
private void postCollection()
protected void collect(LeafCollector collector, int i) throws java.io.IOException
java.io.IOException
public void replay(Collector other) throws java.io.IOException
CachingCollector
other.setScorer
as well as scores are not replayed.replay
in class CachingCollector
java.io.IOException