Class MutableH3Index
- java.lang.Object
-
- org.apache.pinot.segment.local.realtime.impl.geospatial.MutableH3Index
-
- All Implemented Interfaces:
Closeable,AutoCloseable,H3IndexReader
public class MutableH3Index extends Object implements H3IndexReader
A H3 index reader for the real-time H3 index values on the fly.This class is thread-safe for single writer multiple readers.
-
-
Constructor Summary
Constructors Constructor Description MutableH3Index(H3IndexResolution resolution)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(org.locationtech.jts.geom.Geometry geometry)Adds the next geospatial value.voidclose()org.roaringbitmap.buffer.MutableRoaringBitmapgetDocIds(long h3Id)H3IndexResolutiongetH3IndexResolution()
-
-
-
Constructor Detail
-
MutableH3Index
public MutableH3Index(H3IndexResolution resolution) throws IOException
- Throws:
IOException
-
-
Method Detail
-
add
public void add(org.locationtech.jts.geom.Geometry geometry)
Adds the next geospatial value.
-
getDocIds
public org.roaringbitmap.buffer.MutableRoaringBitmap getDocIds(long h3Id)
- Specified by:
getDocIdsin interfaceH3IndexReader
-
getH3IndexResolution
public H3IndexResolution getH3IndexResolution()
- Specified by:
getH3IndexResolutionin interfaceH3IndexReader
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-