use of io.druid.collections.bitmap.ImmutableBitmap in project druid by druid-io.
the class BoundFilterBenchmark method matchEverythingAlphaNumeric.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchEverythingAlphaNumeric() {
final ImmutableBitmap bitmapIndex = EVERYTHING_ALPHANUMERIC.getBitmapIndex(selector);
Preconditions.checkState(bitmapIndex.size() == cardinality);
}
use of io.druid.collections.bitmap.ImmutableBitmap in project druid by druid-io.
the class BoundFilterBenchmark method matchNothingLexicographic.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchNothingLexicographic() {
final ImmutableBitmap bitmapIndex = NOTHING_LEXICOGRAPHIC.getBitmapIndex(selector);
Preconditions.checkState(bitmapIndex.size() == 0);
}
use of io.druid.collections.bitmap.ImmutableBitmap in project druid by druid-io.
the class BoundFilterBenchmark method matchEverythingLexicographic.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchEverythingLexicographic() {
final ImmutableBitmap bitmapIndex = EVERYTHING_LEXICOGRAPHIC.getBitmapIndex(selector);
Preconditions.checkState(bitmapIndex.size() == cardinality);
}
use of io.druid.collections.bitmap.ImmutableBitmap in project druid by druid-io.
the class LikeFilterBenchmark method matchSelectorEquals.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchSelectorEquals(Blackhole blackhole) {
final ImmutableBitmap bitmapIndex = SELECTOR_EQUALS.getBitmapIndex(selector);
blackhole.consume(bitmapIndex);
}
use of io.druid.collections.bitmap.ImmutableBitmap in project druid by druid-io.
the class LikeFilterBenchmark method matchLikePrefix.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchLikePrefix(Blackhole blackhole) {
final ImmutableBitmap bitmapIndex = LIKE_PREFIX.getBitmapIndex(selector);
blackhole.consume(bitmapIndex);
}
Aggregations