Class NativeTextIndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.text.AbstractTextIndexCreator
-
- org.apache.pinot.segment.local.segment.creator.impl.text.NativeTextIndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,TextIndexCreator,IndexCreator
public class NativeTextIndexCreator extends AbstractTextIndexCreator
-
-
Field Summary
Fields Modifier and Type Field Description static intHEADER_LENGTHstatic intVERSION
-
Constructor Summary
Constructors Constructor Description NativeTextIndexCreator(String column, File indexDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String document)voidadd(String[] documents, int length)List<String>analyze(String text)voidclose()voidseal()-
Methods inherited from class org.apache.pinot.segment.local.segment.index.text.AbstractTextIndexCreator
add, add
-
-
-
-
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)
-
add
public void add(String[] documents, int length)
-
seal
public void seal() throws IOException- Throws:
IOException
-
close
public void close() throws IOException- Throws:
IOException
-
analyze
public List<String> analyze(String text) throws IOException
- Throws:
IOException
-
-