use of org.apache.druid.collections.bitmap.WrappedImmutableRoaringBitmap in project druid by druid-io.
the class BaseColumnarLongsBenchmark method setupContiguousBitmapFilter.
private void setupContiguousBitmapFilter(int rows, int filterRowCount, int startOffset) {
MutableRoaringBitmap bitmap = new MutableRoaringBitmap();
for (int i = startOffset; i < filterRowCount; i++) {
bitmap.add(i);
}
offset = BitmapOffset.of(new WrappedImmutableRoaringBitmap(bitmap.toImmutableRoaringBitmap()), false, rows);
vectorOffset = new BitmapVectorOffset(VECTOR_SIZE, new WrappedImmutableRoaringBitmap(bitmap.toImmutableRoaringBitmap()), startOffset, rows);
}
Aggregations