Search in sources :

Example 1 with WrappedConciseBitmap

use of org.apache.druid.collections.bitmap.WrappedConciseBitmap in project druid by druid-io.

the class VectorSelectorUtilsTest method testConciseMutableNullVector.

@Test
public void testConciseMutableNullVector() {
    final WrappedConciseBitmap bitmap = new WrappedConciseBitmap();
    populate(bitmap, NULLS);
    assertNullVector(bitmap, NULLS);
    final WrappedConciseBitmap bitmap2 = new WrappedConciseBitmap();
    populate(bitmap2, NULLS_PATTERN);
    assertNullVector(bitmap2, NULLS_PATTERN);
}
Also used : WrappedConciseBitmap(org.apache.druid.collections.bitmap.WrappedConciseBitmap) Test(org.junit.Test)

Example 2 with WrappedConciseBitmap

use of org.apache.druid.collections.bitmap.WrappedConciseBitmap in project druid by druid-io.

the class VectorSelectorUtilsTest method testConciseImmutableNullVector.

@Test
public void testConciseImmutableNullVector() {
    final WrappedConciseBitmap bitmap = new WrappedConciseBitmap();
    populate(bitmap, NULLS);
    final ImmutableBitmap immutable = new WrappedImmutableConciseBitmap(ImmutableConciseSet.newImmutableFromMutable(bitmap.getBitmap()));
    assertNullVector(immutable, NULLS);
    final WrappedConciseBitmap bitmap2 = new WrappedConciseBitmap();
    populate(bitmap2, NULLS_PATTERN);
    final ImmutableBitmap immutable2 = new WrappedImmutableConciseBitmap(ImmutableConciseSet.newImmutableFromMutable(bitmap2.getBitmap()));
    assertNullVector(immutable2, NULLS_PATTERN);
}
Also used : WrappedConciseBitmap(org.apache.druid.collections.bitmap.WrappedConciseBitmap) ImmutableBitmap(org.apache.druid.collections.bitmap.ImmutableBitmap) WrappedImmutableConciseBitmap(org.apache.druid.collections.bitmap.WrappedImmutableConciseBitmap) Test(org.junit.Test)

Aggregations

WrappedConciseBitmap (org.apache.druid.collections.bitmap.WrappedConciseBitmap)2 Test (org.junit.Test)2 ImmutableBitmap (org.apache.druid.collections.bitmap.ImmutableBitmap)1 WrappedImmutableConciseBitmap (org.apache.druid.collections.bitmap.WrappedImmutableConciseBitmap)1