Search in sources :

Example 6 with ImmutableConciseSet

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

the class BitmapOperationTestBase method testOffheapConciseUnion.

@Test
public void testOffheapConciseUnion() {
    ImmutableConciseSet union = ImmutableConciseSet.union(OFF_HEAP_CONCISE);
    Assert.assertEquals(unionCount, union.size());
}
Also used : ImmutableConciseSet(org.apache.druid.extendedset.intset.ImmutableConciseSet) Test(org.junit.Test)

Aggregations

ImmutableConciseSet (org.apache.druid.extendedset.intset.ImmutableConciseSet)6 ByteBuffer (java.nio.ByteBuffer)2 Test (org.junit.Test)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 DataOutputStream (java.io.DataOutputStream)1 WrappedImmutableConciseBitmap (org.apache.druid.collections.bitmap.WrappedImmutableConciseBitmap)1 WrappedImmutableRoaringBitmap (org.apache.druid.collections.bitmap.WrappedImmutableRoaringBitmap)1 IAE (org.apache.druid.java.util.common.IAE)1 Benchmark (org.openjdk.jmh.annotations.Benchmark)1 BenchmarkMode (org.openjdk.jmh.annotations.BenchmarkMode)1 OutputTimeUnit (org.openjdk.jmh.annotations.OutputTimeUnit)1 ImmutableRoaringBitmap (org.roaringbitmap.buffer.ImmutableRoaringBitmap)1