Class OnHeapJsonIndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.inv.json.BaseJsonIndexCreator
-
- org.apache.pinot.segment.local.segment.creator.impl.inv.json.OnHeapJsonIndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,JsonIndexCreator,IndexCreator
public class OnHeapJsonIndexCreator extends BaseJsonIndexCreator
Implementation ofJsonIndexCreatorthat uses on-heap memory.On-heap creator uses more heap memory, but is cheaper on computation and does not flush data to disk which can slow down the creation because of the IO latency. Use on-heap creator in the environment where there is enough heap memory and garbage collection won't cause performance issue (e.g. Hadoop/Spark/Pinot Minion).
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.segment.local.segment.creator.impl.inv.json.BaseJsonIndexCreator
HEADER_LENGTH, VERSION_1, VERSION_2
-
Fields inherited from interface org.apache.pinot.segment.spi.index.creator.JsonIndexCreator
KEY_VALUE_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description OnHeapJsonIndexCreator(File indexDir, String columnName, JsonIndexConfig jsonIndexConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidseal()-
Methods inherited from class org.apache.pinot.segment.local.segment.creator.impl.inv.json.BaseJsonIndexCreator
add, close
-
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.JsonIndexCreator
add, add
-
-
-
-
Constructor Detail
-
OnHeapJsonIndexCreator
public OnHeapJsonIndexCreator(File indexDir, String columnName, JsonIndexConfig jsonIndexConfig) throws IOException
- Throws:
IOException
-
-
Method Detail
-
seal
public void seal() throws IOException- Throws:
IOException
-
-