Class RealtimeLuceneDocIdCollector
- java.lang.Object
-
- org.apache.pinot.segment.local.realtime.impl.invertedindex.RealtimeLuceneDocIdCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector
public class RealtimeLuceneDocIdCollector extends Object implements org.apache.lucene.search.Collector
DocID collector for Lucene search query. We have optimized the lucene search on offline segments by maintaining a pre-built luceneDocId -> pinotDocId mapping. Since that solution is not directly applicable to realtime, we will separate the collector for the time-being. Once we have optimized the realtime, we can
-
-
Constructor Summary
Constructors Constructor Description RealtimeLuceneDocIdCollector(org.roaringbitmap.buffer.MutableRoaringBitmap docIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.LeafCollectorgetLeafCollector(org.apache.lucene.index.LeafReaderContext context)org.apache.lucene.search.ScoreModescoreMode()
-
-
-
Method Detail
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()
- Specified by:
scoreModein interfaceorg.apache.lucene.search.Collector
-
getLeafCollector
public org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context)
- Specified by:
getLeafCollectorin interfaceorg.apache.lucene.search.Collector
-
-