Class LuceneFSTIndexReader
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.LuceneFSTIndexReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IndexReader,TextIndexReader
public class LuceneFSTIndexReader extends Object implements TextIndexReader
This class loads FST index from PinotDataBuffer and creates a FST reader which is used in finding matching results for regexp queries. Since FST index currently stores dict ids as values this class only implements getDictIds method.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description LuceneFSTIndexReader(PinotDataBuffer pinotDataBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.roaringbitmap.buffer.ImmutableRoaringBitmapgetDictIds(String searchQuery)org.roaringbitmap.buffer.MutableRoaringBitmapgetDocIds(String searchQuery)
-
-
-
Constructor Detail
-
LuceneFSTIndexReader
public LuceneFSTIndexReader(PinotDataBuffer pinotDataBuffer) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getDocIds
public org.roaringbitmap.buffer.MutableRoaringBitmap getDocIds(String searchQuery)
- Specified by:
getDocIdsin interfaceTextIndexReader
-
getDictIds
public org.roaringbitmap.buffer.ImmutableRoaringBitmap getDictIds(String searchQuery)
- Specified by:
getDictIdsin interfaceTextIndexReader
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-