Class NativeFSTIndexReader
- java.lang.Object
-
- org.apache.pinot.segment.local.utils.nativefst.NativeFSTIndexReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IndexReader,TextIndexReader
public class NativeFSTIndexReader 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. This class works on top of ImmutableFST.
-
-
Constructor Summary
Constructors Constructor Description NativeFSTIndexReader(PinotDataBuffer dataBuffer)
-
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
-
NativeFSTIndexReader
public NativeFSTIndexReader(PinotDataBuffer dataBuffer) 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
-
-