Package org.apache.lucene.tests.search
Class AssertingCollector
- java.lang.Object
-
- org.apache.lucene.search.FilterCollector
-
- org.apache.lucene.tests.search.AssertingCollector
-
- All Implemented Interfaces:
Collector
public class AssertingCollector extends FilterCollector
A collector that asserts that it is used correctly.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
hasFinishedCollectingPreviousLeaf
-
Fields inherited from class org.apache.lucene.search.FilterCollector
in
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LeafCollector
getLeafCollector(LeafReaderContext context)
void
setWeight(Weight weight)
static AssertingCollector
wrap(Collector in)
Wrap the given collector in order to add assertions.-
Methods inherited from class org.apache.lucene.search.FilterCollector
scoreMode, toString
-
-
-
-
Method Detail
-
wrap
public static AssertingCollector wrap(Collector in)
Wrap the given collector in order to add assertions.
-
getLeafCollector
public LeafCollector getLeafCollector(LeafReaderContext context) throws IOException
- Specified by:
getLeafCollector
in interfaceCollector
- Overrides:
getLeafCollector
in classFilterCollector
- Throws:
IOException
-
setWeight
public void setWeight(Weight weight)
- Specified by:
setWeight
in interfaceCollector
- Overrides:
setWeight
in classFilterCollector
-
-