Java Code Examples for org.roaringbitmap.buffer.ImmutableRoaringBitmap#andNot()
The following examples show how to use
org.roaringbitmap.buffer.ImmutableRoaringBitmap#andNot() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ArrayContainerAndNotRunContainerBenchmark.java From RoaringBitmap with Apache License 2.0 | 5 votes |
@Benchmark public ImmutableRoaringBitmap immutablePairwiseACAndNotRC(RealDataRoaringOnlyBenchmarkState bs) { ImmutableRoaringBitmap last = null; for (int k = 0; k + 1 < bs.immutableBitmaps.size(); ++k) { last = ImmutableRoaringBitmap.andNot(bs.immutableOnlyArrayContainers.get(k), bs.immutableOnlyRunContainers.get(k + 1)); } return last; }
Example 2
Source File: WrappedImmutableRoaringBitmap.java From bytebuffer-collections with Apache License 2.0 | 5 votes |
@Override public ImmutableBitmap difference(ImmutableBitmap otherBitmap) { WrappedImmutableRoaringBitmap other = (WrappedImmutableRoaringBitmap) otherBitmap; ImmutableRoaringBitmap unwrappedOtherBitmap = other.bitmap; return new WrappedImmutableRoaringBitmap(ImmutableRoaringBitmap.andNot(bitmap, unwrappedOtherBitmap)); }
Example 3
Source File: ImmutableRoaringBitmapWrapper.java From RoaringBitmap with Apache License 2.0 | 4 votes |
@Override public Bitmap andNot(Bitmap other) { return new ImmutableRoaringBitmapWrapper( ImmutableRoaringBitmap.andNot(bitmap, ((ImmutableRoaringBitmapWrapper) other).bitmap)); }