Package org.apache.druid.segment.column
Interface BitmapIndexType.Writer
- All Superinterfaces:
Serializer
- Enclosing class:
- BitmapIndexType
Interface to serialize bitmap index.
-
Method Summary
Modifier and TypeMethodDescriptionvoidUpdate the bitmaps on the heap accordingly.voidfinalizeWriter(BitmapFactory bitmapFactory) Writes the bitmaps to writer, and free up heap memory for bitmaps.voidinit(BitmapFactory bitmapFactory, int dictionarySize) Creates mutable bitmaps on the heap.voidopenWriter(SegmentWriteOutMedium writeoutMedium, String columnName, ObjectStrategy<ImmutableBitmap> objectStrategy) Creates a new writer, and prepares the writer for writing.Methods inherited from interface org.apache.druid.segment.serde.Serializer
getSerializedSize, writeTo
-
Method Details
-
openWriter
void openWriter(SegmentWriteOutMedium writeoutMedium, String columnName, ObjectStrategy<ImmutableBitmap> objectStrategy) throws IOException Creates a new writer, and prepares the writer for writing.- Throws:
IOException
-
init
Creates mutable bitmaps on the heap. -
add
Update the bitmaps on the heap accordingly. -
finalizeWriter
Writes the bitmaps to writer, and free up heap memory for bitmaps.- Throws:
IOException
-