Class OnHeapH3IndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.inv.geospatial.BaseH3IndexCreator
-
- org.apache.pinot.segment.local.segment.creator.impl.inv.geospatial.OnHeapH3IndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,GeoSpatialIndexCreator,IndexCreator
public class OnHeapH3IndexCreator extends BaseH3IndexCreator
H3 Index creator that 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.geospatial.BaseH3IndexCreator
HEADER_LENGTH, VERSION
-
-
Constructor Summary
Constructors Constructor Description OnHeapH3IndexCreator(File indexDir, String columnName, H3IndexResolution resolution)
-
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.geospatial.BaseH3IndexCreator
add, close, deserialize
-
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.GeoSpatialIndexCreator
add, add
-
-
-
-
Constructor Detail
-
OnHeapH3IndexCreator
public OnHeapH3IndexCreator(File indexDir, String columnName, H3IndexResolution resolution) throws IOException
- Throws:
IOException
-
-
Method Detail
-
seal
public void seal() throws IOException- Throws:
IOException
-
-