Module org.apache.lucene.core
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) intFields inherited from class org.apache.lucene.search.FilterCollector
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcollect(LeafCollector collector, int i) getLeafCollector(LeafReaderContext context) Create a newcollectorto collect the given context.protected voidvoidReplays 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, isCachedMethods inherited from class org.apache.lucene.search.FilterCollector
scoreMode, setWeight, toString
-
Field Details
-
contexts
List<LeafReaderContext> contexts -
docs
List<int[]> docs -
maxDocsToCache
int maxDocsToCache
-
-
Constructor Details
-
NoScoreCachingCollector
NoScoreCachingCollector(Collector in, int maxDocsToCache)
-
-
Method Details
-
wrap
-
getLeafCollector
Description copied from interface:CollectorCreate a newcollectorto collect the given context.- Specified by:
getLeafCollectorin interfaceCollector- Overrides:
getLeafCollectorin classFilterCollector- Parameters:
context- next atomic reader context- Throws:
IOException
-
invalidate
protected void invalidate() -
collect
- Throws:
IOException
-
replay
Description copied from class:CachingCollectorReplays the cached doc IDs (and scores) to the given Collector. If this instance does not cache scores, then Scorer is not set onother.setScoreras well as scores are not replayed.- Specified by:
replayin classCachingCollector- Throws:
IOException
-