Search in sources :

Example 1 with WrappedRoaringBitmap

use of io.druid.collections.bitmap.WrappedRoaringBitmap in project druid by druid-io.

the class DistinctCountBufferAggregator method getMutableBitmap.

private MutableBitmap getMutableBitmap(ByteBuffer buf, int position) {
    MutableBitmap mutableBitmap = mutableBitmapCollection.get(position);
    if (mutableBitmap == null) {
        mutableBitmap = new WrappedRoaringBitmap();
        mutableBitmapCollection.put(position, mutableBitmap);
    }
    return mutableBitmap;
}
Also used : MutableBitmap(io.druid.collections.bitmap.MutableBitmap) WrappedRoaringBitmap(io.druid.collections.bitmap.WrappedRoaringBitmap)

Aggregations

MutableBitmap (io.druid.collections.bitmap.MutableBitmap)1 WrappedRoaringBitmap (io.druid.collections.bitmap.WrappedRoaringBitmap)1