use of org.apache.druid.collections.bitmap.ImmutableBitmap in project druid by druid-io.
the class LikeFilterBenchmark method matchBoundPrefix.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchBoundPrefix(Blackhole blackhole) {
final ImmutableBitmap bitmapIndex = BOUND_PREFIX.getBitmapIndex(selector);
blackhole.consume(bitmapIndex);
}
use of org.apache.druid.collections.bitmap.ImmutableBitmap in project druid by druid-io.
the class BoundFilterBenchmark method matchHalfLexicographic.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchHalfLexicographic() {
final ImmutableBitmap bitmapIndex = HALF_LEXICOGRAPHIC.getBitmapIndex(selector);
Preconditions.checkState(bitmapIndex.size() > 0 && bitmapIndex.size() < cardinality);
}
use of org.apache.druid.collections.bitmap.ImmutableBitmap in project druid by druid-io.
the class BoundFilterBenchmark method matchNothingAlphaNumeric.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchNothingAlphaNumeric() {
final ImmutableBitmap bitmapIndex = NOTHING_ALPHANUMERIC.getBitmapIndex(selector);
Preconditions.checkState(bitmapIndex.size() == 0);
}
use of org.apache.druid.collections.bitmap.ImmutableBitmap in project druid by druid-io.
the class BoundFilterBenchmark method matchHalfAlphaNumeric.
@Benchmark
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public void matchHalfAlphaNumeric() {
final ImmutableBitmap bitmapIndex = HALF_ALPHANUMERIC.getBitmapIndex(selector);
Preconditions.checkState(bitmapIndex.size() > 0 && bitmapIndex.size() < cardinality);
}
use of org.apache.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);
}
Aggregations