Package org.apache.lucene.search
Class FilterCollector
- java.lang.Object
-
- org.apache.lucene.search.FilterCollector
-
- All Implemented Interfaces:
Collector
- Direct Known Subclasses:
CachingCollector,EarlyTerminatingSortingCollector,PositiveScoresOnlyCollector
public abstract class FilterCollector extends Object implements Collector
Collectordelegator.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description FilterCollector(Collector in)Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeafCollectorgetLeafCollector(LeafReaderContext context)Create a newcollectorto collect the given context.booleanneedsScores()Indicates if document scores are needed by this collector.StringtoString()
-
-
-
Field Detail
-
in
protected final Collector in
-
-
Constructor Detail
-
FilterCollector
public FilterCollector(Collector in)
Sole constructor.
-
-
Method Detail
-
getLeafCollector
public LeafCollector getLeafCollector(LeafReaderContext context) throws IOException
Description copied from interface:CollectorCreate a newcollectorto collect the given context.- Specified by:
getLeafCollectorin interfaceCollector- Parameters:
context- next atomic reader context- Throws:
IOException
-
needsScores
public boolean needsScores()
Description copied from interface:CollectorIndicates if document scores are needed by this collector.- Specified by:
needsScoresin interfaceCollector- Returns:
trueif scores are needed.
-
-