Class BitmapInvertedIndexWriter
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.creator.impl.inv.BitmapInvertedIndexWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class BitmapInvertedIndexWriter extends Object implements Closeable
Writer for bitmap inverted index file.Layout for RoaringBitmap inverted index: |-------------------------------------------------------------------------| | Start offset of 1st bitmap | | End offset of 1st bitmap (exclusive) / Start offset of 2nd bitmap | | ... | | End offset of 2nd last bitmap (exclusive) / Start offset of last bitmap | | End offset of last bitmap (exclusive) | |-------------------------------------------------------------------------| | Data for 1st bitmap | | Data for 2nd bitmap | | ... | | Data for last bitmap | |-------------------------------------------------------------------------|
-
-
Constructor Detail
-
BitmapInvertedIndexWriter
public BitmapInvertedIndexWriter(File outputFile, int numBitmaps) throws IOException
- Throws:
IOException
-
-
Method Detail
-
add
public void add(org.roaringbitmap.RoaringBitmap bitmap) throws IOException- Throws:
IOException
-
add
public void add(byte[] bitmapBytes) throws IOException- Throws:
IOException
-
add
public void add(byte[] bitmapBytes, int length) throws IOException- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-