Class BaseH3IndexCreator
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.inv.geospatial.BaseH3IndexCreator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,GeoSpatialIndexCreator,IndexCreator
- Direct Known Subclasses:
OffHeapH3IndexCreator,OnHeapH3IndexCreator
public abstract class BaseH3IndexCreator extends Object implements GeoSpatialIndexCreator
Base implementation of the H3 index creator.Index file layout:
- Header
- Version (int)
- Number of unique H3 ids (int)
- Resolutions (short)
- Long dictionary
- Bitmap inverted index
-
-
Field Summary
Fields Modifier and Type Field Description static intHEADER_LENGTHstatic intVERSION
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(org.locationtech.jts.geom.Geometry geometry)voidclose()org.locationtech.jts.geom.Geometrydeserialize(byte[] bytes)-
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, seal
-
-
-
-
Field Detail
-
VERSION
public static final int VERSION
- See Also:
- Constant Field Values
-
HEADER_LENGTH
public static final int HEADER_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
deserialize
public org.locationtech.jts.geom.Geometry deserialize(byte[] bytes)
- Specified by:
deserializein interfaceGeoSpatialIndexCreator
-
add
public void add(org.locationtech.jts.geom.Geometry geometry) throws IOException- Specified by:
addin interfaceGeoSpatialIndexCreator- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-