Class NativeFSTIndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.utils.nativefst.NativeFSTIndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,TextIndexCreator
public class NativeFSTIndexCreator extends Object implements TextIndexCreator
-
-
Constructor Summary
Constructors Constructor Description NativeFSTIndexCreator(File indexDir, String columnName, String[] sortedEntries)This index requires values of the column be added in sorted order.
-
-
-
Constructor Detail
-
NativeFSTIndexCreator
public NativeFSTIndexCreator(File indexDir, String columnName, String[] sortedEntries)
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 directorycolumnName- Column name for which index is being createdsortedEntries- Sorted entries of the unique values of the column.- Throws:
IOException
-
-
Method Detail
-
add
public void add(String document)
- Specified by:
addin interfaceTextIndexCreator
-
add
public void add(String[] document, int length)
- Specified by:
addin interfaceTextIndexCreator
-
seal
public void seal() throws IOException- Specified by:
sealin interfaceTextIndexCreator- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-