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 booleanhasFinishedCollectingPreviousLeaf-
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 LeafCollectorgetLeafCollector(LeafReaderContext context)voidsetWeight(Weight weight)static AssertingCollectorwrap(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:
getLeafCollectorin interfaceCollector- Overrides:
getLeafCollectorin classFilterCollector- Throws:
IOException
-
setWeight
public void setWeight(Weight weight)
- Specified by:
setWeightin interfaceCollector- Overrides:
setWeightin classFilterCollector
-
-