Class BaseJsonIndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.inv.json.BaseJsonIndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,JsonIndexCreator
- Direct Known Subclasses:
OffHeapJsonIndexCreator,OnHeapJsonIndexCreator
public abstract class BaseJsonIndexCreator extends Object implements JsonIndexCreator
Base implementation of the json index creator.Header format:
- Version (int)
- Max value length (int)
- Dictionary file length (long)
- Inverted index file length (long)
- Doc id mapping file length (long)
-
-
Field Summary
Fields Modifier and Type Field Description static intHEADER_LENGTHstatic intVERSION_1static intVERSION_2-
Fields inherited from interface org.apache.pinot.segment.spi.index.creator.JsonIndexCreator
KEY_VALUE_SEPARATOR
-
-
-
-
Field Detail
-
VERSION_1
public static final int VERSION_1
- See Also:
- Constant Field Values
-
VERSION_2
public static final int VERSION_2
- See Also:
- Constant Field Values
-
HEADER_LENGTH
public static final int HEADER_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
add
public void add(String jsonString) throws IOException
- Specified by:
addin interfaceJsonIndexCreator- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-