Class LuceneFSTIndexCreator

  • All Implemented Interfaces:
    Closeable, AutoCloseable, TextIndexCreator

    public class LuceneFSTIndexCreator
    extends Object
    implements TextIndexCreator
    This index works only for dictionary enabled columns. It requires entries be added into this index in sorted order and it creates a mapping from sorted entry to the index underneath. This index stores key (column value) to dictionary id as an entry.
    • Constructor Detail

      • LuceneFSTIndexCreator

        public LuceneFSTIndexCreator​(File indexDir,
                                     String columnName,
                                     String[] sortedEntries)
                              throws IOException
        This index requires values of the column be added in sorted order. Sorted entries could be passed in through constructor or added through addSortedDictIds function. Index of the sorted entry should correspond to the dictionary id.
        Parameters:
        indexDir - Index directory
        columnName - Column name for which index is being created
        sortedEntries - Sorted entries of the unique values of the column.
        Throws:
        IOException