Class LuceneTextIndexReader

    • Constructor Summary

      Constructors 
      Constructor Description
      LuceneTextIndexReader​(String column, File indexDir, int numDocs, Map<String,​String> textIndexProperties)
      As part of loading the segment in ImmutableSegmentLoader, we load the text index (per column if it exists) and store the reference in PhysicalColumnIndexContainer similar to how it is done for other types of indexes.
    • Constructor Detail

      • LuceneTextIndexReader

        public LuceneTextIndexReader​(String column,
                                     File indexDir,
                                     int numDocs,
                                     @Nullable
                                     Map<String,​String> textIndexProperties)
        As part of loading the segment in ImmutableSegmentLoader, we load the text index (per column if it exists) and store the reference in PhysicalColumnIndexContainer similar to how it is done for other types of indexes.
        Parameters:
        column - column name
        indexDir - segment index directory
        numDocs - number of documents in the segment
    • Method Detail

      • getDictIds

        public org.roaringbitmap.buffer.ImmutableRoaringBitmap getDictIds​(String searchQuery)
        Specified by:
        getDictIds in interface TextIndexReader
      • getDocIds

        public org.roaringbitmap.buffer.MutableRoaringBitmap getDocIds​(String searchQuery)
        Specified by:
        getDocIds in interface TextIndexReader
      • close

        public void close()
                   throws IOException
        When we destroy the loaded ImmutableSegment, all the indexes (for each column) are destroyed and as part of that we release the text index
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Throws:
        IOException