Class NativeTextIndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.text.NativeTextIndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,TextIndexCreator
public class NativeTextIndexCreator extends Object implements TextIndexCreator
-
-
Field Summary
Fields Modifier and Type Field Description static intHEADER_LENGTHstatic intVERSION
-
Constructor Summary
Constructors Constructor Description NativeTextIndexCreator(String column, File indexDir)
-
-
-
Field Detail
-
HEADER_LENGTH
public static final int HEADER_LENGTH
- See Also:
- Constant Field Values
-
VERSION
public static final int VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NativeTextIndexCreator
public NativeTextIndexCreator(String column, File indexDir) throws IOException
- Throws:
IOException
-
-
Method Detail
-
add
public void add(String document)
- Specified by:
addin interfaceTextIndexCreator
-
add
public void add(String[] documents, 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
-
analyze
public List<String> analyze(String text, org.apache.lucene.analysis.Analyzer analyzer) throws IOException
- Throws:
IOException
-
-