Module org.apache.lucene.core
Package org.apache.lucene.search
Class CachingCollector.ScoreCachingLeafCollector
java.lang.Object
org.apache.lucene.search.FilterLeafCollector
org.apache.lucene.search.CachingCollector.NoScoreCachingLeafCollector
org.apache.lucene.search.CachingCollector.ScoreCachingLeafCollector
- All Implemented Interfaces:
LeafCollector
- Enclosing class:
CachingCollector
private class CachingCollector.ScoreCachingLeafCollector
extends CachingCollector.NoScoreCachingLeafCollector
-
Field Summary
FieldsFields inherited from class org.apache.lucene.search.CachingCollector.NoScoreCachingLeafCollector
collector, docCount, docs, maxDocsToCacheFields inherited from class org.apache.lucene.search.FilterLeafCollector
in -
Constructor Summary
ConstructorsConstructorDescriptionScoreCachingLeafCollector(LeafCollector in, int maxDocsToCache, CachingCollector.ScoreCachingCollector collector) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuffer(int doc) (package private) float[]protected voidgrow(int newLen) protected voidprotected voidvoidCalled before successive calls toLeafCollector.collect(int).Methods inherited from class org.apache.lucene.search.CachingCollector.NoScoreCachingLeafCollector
cachedDocs, collect, finish, hasCacheMethods inherited from class org.apache.lucene.search.FilterLeafCollector
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.search.LeafCollector
collect, competitiveIterator
-
Field Details
-
scorer
Scorable scorer -
scores
float[] scores
-
-
Constructor Details
-
ScoreCachingLeafCollector
ScoreCachingLeafCollector(LeafCollector in, int maxDocsToCache, CachingCollector.ScoreCachingCollector collector)
-
-
Method Details
-
setScorer
Description copied from interface:LeafCollectorCalled before successive calls toLeafCollector.collect(int). Implementations that need the score of the current document (passed-in toLeafCollector.collect(int)), should save the passed-in Scorer and call scorer.score() when needed.- Specified by:
setScorerin interfaceLeafCollector- Overrides:
setScorerin classFilterLeafCollector- Throws:
IOException
-
grow
protected void grow(int newLen) - Overrides:
growin classCachingCollector.NoScoreCachingLeafCollector
-
invalidate
protected void invalidate()- Overrides:
invalidatein classCachingCollector.NoScoreCachingLeafCollector
-
buffer
- Overrides:
bufferin classCachingCollector.NoScoreCachingLeafCollector- Throws:
IOException
-
cachedScores
float[] cachedScores() -
postCollect
protected void postCollect()- Overrides:
postCollectin classCachingCollector.NoScoreCachingLeafCollector
-