Java Code Examples for org.roaringbitmap.buffer.MutableRoaringBitmap#and()

The following examples show how to use org.roaringbitmap.buffer.MutableRoaringBitmap#and() . 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: MutableRoaringBitmapBenchmark.java    From RoaringBitmap with Apache License 2.0 5 votes vote down vote up
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public MutableRoaringBitmap inplace_and() {
  MutableRoaringBitmap b1 = bitmap1.clone();
  b1.and(bitmap2);
  return b1;
}
 
Example 2
Source File: MutableRoaringBitmapBenchmark.java    From RoaringBitmap with Apache License 2.0 5 votes vote down vote up
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public MutableRoaringBitmap inplace_and() {
  MutableRoaringBitmap b1 = bitmap1.clone();
  b1.and(bitmap2);
  return b1;
}
 
Example 3
Source File: MutableRoaringBitmapBenchmark.java    From RoaringBitmap with Apache License 2.0 5 votes vote down vote up
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public MutableRoaringBitmap inplace_and() {
  MutableRoaringBitmap b1 = bitmap1.clone();
  b1.and(bitmap2);
  return b1;
}
 
Example 4
Source File: WrappedRoaringBitmap.java    From bytebuffer-collections with Apache License 2.0 5 votes vote down vote up
@Override
public ImmutableBitmap intersection(ImmutableBitmap otherBitmap)
{
  WrappedRoaringBitmap other = (WrappedRoaringBitmap) otherBitmap;
  MutableRoaringBitmap unwrappedOtherBitmap = other.bitmap;
  return new WrappedImmutableRoaringBitmap(MutableRoaringBitmap.and(bitmap, unwrappedOtherBitmap));
}
 
Example 5
Source File: MutableRoaringBitmapBenchmark.java    From RoaringBitmap with Apache License 2.0 4 votes vote down vote up
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public MutableRoaringBitmap and() {
  return MutableRoaringBitmap.and(bitmap1, bitmap2);
}
 
Example 6
Source File: MutableRoaringBitmapBenchmark.java    From RoaringBitmap with Apache License 2.0 4 votes vote down vote up
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public MutableRoaringBitmap and() {
  return MutableRoaringBitmap.and(bitmap1, bitmap2);
}
 
Example 7
Source File: MutableRoaringBitmapBenchmark.java    From RoaringBitmap with Apache License 2.0 4 votes vote down vote up
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public MutableRoaringBitmap and() {
  return MutableRoaringBitmap.and(bitmap1, bitmap2);
}