Search in sources :

Example 6 with ConciseSet

use of org.apache.druid.extendedset.intset.ConciseSet in project druid by druid-io.

the class WrappedConciseBitmap method intersection.

@Override
public ImmutableBitmap intersection(ImmutableBitmap otherBitmap) {
    WrappedConciseBitmap other = (WrappedConciseBitmap) otherBitmap;
    ConciseSet unwrappedOtherBitmap = other.bitmap;
    return new WrappedConciseBitmap(bitmap.clone().intersection(unwrappedOtherBitmap));
}
Also used : ImmutableConciseSet(org.apache.druid.extendedset.intset.ImmutableConciseSet) ConciseSet(org.apache.druid.extendedset.intset.ConciseSet)

Aggregations

ConciseSet (org.apache.druid.extendedset.intset.ConciseSet)6 ImmutableConciseSet (org.apache.druid.extendedset.intset.ImmutableConciseSet)6 BitSet (java.util.BitSet)3 MutableRoaringBitmap (org.roaringbitmap.buffer.MutableRoaringBitmap)3 BeforeClass (org.junit.BeforeClass)2 WrappedImmutableConciseBitmap (org.apache.druid.collections.bitmap.WrappedImmutableConciseBitmap)1 WrappedImmutableRoaringBitmap (org.apache.druid.collections.bitmap.WrappedImmutableRoaringBitmap)1 Test (org.junit.Test)1 Setup (org.openjdk.jmh.annotations.Setup)1