use of org.roaringbitmap.buffer.MutableRoaringBitmap in project druid by druid-io.
the class WrappedRoaringBitmap method or.
@Override
public void or(MutableBitmap mutableBitmap) {
WrappedRoaringBitmap other = (WrappedRoaringBitmap) mutableBitmap;
MutableRoaringBitmap unwrappedOtherBitmap = other.bitmap;
bitmap.or(unwrappedOtherBitmap);
}
use of org.roaringbitmap.buffer.MutableRoaringBitmap in project druid by druid-io.
the class WrappedRoaringBitmap method intersection.
@Override
public ImmutableBitmap intersection(ImmutableBitmap otherBitmap) {
WrappedRoaringBitmap other = (WrappedRoaringBitmap) otherBitmap;
MutableRoaringBitmap unwrappedOtherBitmap = other.bitmap;
return new WrappedImmutableRoaringBitmap(MutableRoaringBitmap.and(bitmap, unwrappedOtherBitmap));
}
use of org.roaringbitmap.buffer.MutableRoaringBitmap in project druid by druid-io.
the class WrappedRoaringBitmap method xor.
@Override
public void xor(MutableBitmap mutableBitmap) {
WrappedRoaringBitmap other = (WrappedRoaringBitmap) mutableBitmap;
MutableRoaringBitmap unwrappedOtherBitmap = other.bitmap;
bitmap.xor(unwrappedOtherBitmap);
}
use of org.roaringbitmap.buffer.MutableRoaringBitmap in project druid by druid-io.
the class WrappedRoaringBitmap method union.
@Override
public ImmutableBitmap union(ImmutableBitmap otherBitmap) {
WrappedRoaringBitmap other = (WrappedRoaringBitmap) otherBitmap;
MutableRoaringBitmap unwrappedOtherBitmap = other.bitmap;
return new WrappedImmutableRoaringBitmap(MutableRoaringBitmap.or(bitmap, unwrappedOtherBitmap));
}
use of org.roaringbitmap.buffer.MutableRoaringBitmap in project druid by druid-io.
the class WrappedRoaringBitmap method difference.
@Override
public ImmutableBitmap difference(ImmutableBitmap otherBitmap) {
WrappedRoaringBitmap other = (WrappedRoaringBitmap) otherBitmap;
MutableRoaringBitmap unwrappedOtherBitmap = other.bitmap;
return new WrappedImmutableRoaringBitmap(MutableRoaringBitmap.andNot(bitmap, unwrappedOtherBitmap));
}
Aggregations