Package org.apache.lucene.search
Class CachingCollector.NoScoreCachingCollector
java.lang.Object
org.apache.lucene.search.FilterCollector
org.apache.lucene.search.CachingCollector
org.apache.lucene.search.CachingCollector.NoScoreCachingCollector
- All Implemented Interfaces:
Collector
- Direct Known Subclasses:
CachingCollector.ScoreCachingCollector
- Enclosing class:
- CachingCollector
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) List<LeafReaderContext>
(package private) List<int[]>
(package private) CachingCollector.NoScoreCachingLeafCollector
(package private) int
Fields inherited from class org.apache.lucene.search.FilterCollector
in
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
collect
(LeafCollector collector, int i) getLeafCollector
(LeafReaderContext context) Create a newcollector
to collect the given context.protected void
protected void
private void
void
Replays the cached doc IDs (and scores) to the given Collector.wrap
(LeafCollector in, int maxDocsToCache) Methods inherited from class org.apache.lucene.search.CachingCollector
create, create, create, isCached
Methods inherited from class org.apache.lucene.search.FilterCollector
scoreMode, toString
-
Field Details
-
contexts
List<LeafReaderContext> contexts -
docs
List<int[]> docs -
maxDocsToCache
int maxDocsToCache -
lastCollector
CachingCollector.NoScoreCachingLeafCollector lastCollector
-
-
Constructor Details
-
NoScoreCachingCollector
NoScoreCachingCollector(Collector in, int maxDocsToCache)
-
-
Method Details
-
wrap
-
getLeafCollector
Description copied from interface:Collector
Create a newcollector
to collect the given context.- Specified by:
getLeafCollector
in interfaceCollector
- Overrides:
getLeafCollector
in classFilterCollector
- Parameters:
context
- next atomic reader context- Throws:
IOException
-
invalidate
protected void invalidate() -
postCollect
-
postCollection
private void postCollection() -
collect
- Throws:
IOException
-
replay
Description copied from class:CachingCollector
Replays the cached doc IDs (and scores) to the given Collector. If this instance does not cache scores, then Scorer is not set onother.setScorer
as well as scores are not replayed.- Specified by:
replay
in classCachingCollector
- Throws:
IOException
-