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
FieldsFields inherited from class org.apache.lucene.search.FilterCollector
in -
Method Summary
Modifier and TypeMethodDescriptiongetLeafCollector(LeafReaderContext context) voidstatic AssertingCollectorWrap 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:
getLeafCollectorin interfaceCollector- Overrides:
getLeafCollectorin classFilterCollector- Throws:
IOException
-
setWeight
- Specified by:
setWeightin interfaceCollector- Overrides:
setWeightin classFilterCollector
-