Class NativeFSTIndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.utils.nativefst.NativeFSTIndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,FSTIndexCreator,IndexCreator
public class NativeFSTIndexCreator extends Object implements FSTIndexCreator
-
-
Constructor Summary
Constructors Constructor Description NativeFSTIndexCreator(File indexDir, String columnName, String[] sortedEntries)This index requires values of the column be added in sorted order.NativeFSTIndexCreator(IndexCreationContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String document)voidadd(String[] document, int length)voidclose()voidseal()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.segment.spi.index.creator.FSTIndexCreator
add, add
-
-
-
-
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.
-
NativeFSTIndexCreator
public NativeFSTIndexCreator(IndexCreationContext context)
-
-
Method Detail
-
add
public void add(String document)
- Specified by:
addin interfaceFSTIndexCreator
-
add
public void add(String[] document, int length)
- Specified by:
addin interfaceFSTIndexCreator
-
seal
public void seal() throws IOException- Specified by:
sealin interfaceIndexCreator- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-