Class ImmutableH3IndexReader
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.geospatial.ImmutableH3IndexReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,H3IndexReader
public class ImmutableH3IndexReader extends Object implements H3IndexReader
Reader of the H3 index. Please referenceBaseH3IndexCreatorfor the index file layout.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description ImmutableH3IndexReader(PinotDataBuffer dataBuffer)Constructs an inverted index with the specified size.
-
Method Summary
Modifier and Type Method Description voidclose()org.roaringbitmap.buffer.ImmutableRoaringBitmapgetDocIds(long h3Id)H3IndexResolutiongetH3IndexResolution()
-
-
-
Constructor Detail
-
ImmutableH3IndexReader
public ImmutableH3IndexReader(PinotDataBuffer dataBuffer)
Constructs an inverted index with the specified size.- Parameters:
dataBuffer- data buffer for the inverted index.
-
-
Method Detail
-
getDocIds
public org.roaringbitmap.buffer.ImmutableRoaringBitmap getDocIds(long h3Id)
- Specified by:
getDocIdsin interfaceH3IndexReader
-
getH3IndexResolution
public H3IndexResolution getH3IndexResolution()
- Specified by:
getH3IndexResolutionin interfaceH3IndexReader
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-