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
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 inherited from class org.apache.lucene.search.FilterCollector
in
-
Method Summary
Modifier and TypeMethodDescriptiongetLeafCollector
(LeafReaderContext context) void
static AssertingCollector
Wrap the given collector in order to add assertions.Methods inherited from class org.apache.lucene.search.FilterCollector
scoreMode, toString
-
Field Details
-
hasFinishedCollectingPreviousLeaf
public boolean hasFinishedCollectingPreviousLeaf
-
-
Method Details
-
wrap
Wrap the given collector in order to add assertions. -
getLeafCollector
- Specified by:
getLeafCollector
in interfaceCollector
- Overrides:
getLeafCollector
in classFilterCollector
- Throws:
IOException
-
setWeight
- Specified by:
setWeight
in interfaceCollector
- Overrides:
setWeight
in classFilterCollector
-