Class TopDocsDataCollector<T>
java.lang.Object
org.apache.lucene.search.SimpleCollector
org.hibernate.search.backend.lucene.lowlevel.collector.impl.TopDocsDataCollector<T>
- Type Parameters:
T- The type of value collected for each top doc.
- All Implemented Interfaces:
org.apache.lucene.search.Collector,org.apache.lucene.search.LeafCollector
public class TopDocsDataCollector<T>
extends org.apache.lucene.search.SimpleCollector
The collector used when collecting data related to top docs.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTopDocsDataCollector(TopDocsDataCollectorExecutionContext context, Values<? extends T> values) -
Method Summary
Modifier and TypeMethodDescriptionvoidcollect(int doc) com.carrotsearch.hppc.IntObjectMap<T>protected voiddoSetNextReader(org.apache.lucene.index.LeafReaderContext context) org.apache.lucene.search.ScoreModeMethods inherited from class org.apache.lucene.search.SimpleCollector
getLeafCollector, setScorerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.search.Collector
setWeightMethods inherited from interface org.apache.lucene.search.LeafCollector
collect, competitiveIterator, finish
-
Constructor Details
-
TopDocsDataCollector
public TopDocsDataCollector(TopDocsDataCollectorExecutionContext context, Values<? extends T> values)
-
-
Method Details
-
doSetNextReader
protected void doSetNextReader(org.apache.lucene.index.LeafReaderContext context) throws IOException - Overrides:
doSetNextReaderin classorg.apache.lucene.search.SimpleCollector- Throws:
IOException
-
collect
- Specified by:
collectin interfaceorg.apache.lucene.search.LeafCollector- Specified by:
collectin classorg.apache.lucene.search.SimpleCollector- Throws:
IOException
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode() -
collected
-