use of org.apache.druid.segment.data.ImmutableBitmapValues in project druid by druid-io.
the class QueryableIndexIndexableAdapter method getBitmapIndex.
@VisibleForTesting
BitmapValues getBitmapIndex(String dimension, String value) {
final ColumnHolder columnHolder = input.getColumnHolder(dimension);
if (columnHolder == null) {
return BitmapValues.EMPTY;
}
final BitmapIndex bitmaps = columnHolder.getBitmapIndex();
if (bitmaps == null) {
return BitmapValues.EMPTY;
}
return new ImmutableBitmapValues(bitmaps.getBitmap(bitmaps.getIndex(value)));
}
use of org.apache.druid.segment.data.ImmutableBitmapValues in project druid by druid-io.
the class QueryableIndexIndexableAdapter method getBitmapValues.
@Override
public BitmapValues getBitmapValues(String dimension, int dictId) {
final ColumnHolder columnHolder = input.getColumnHolder(dimension);
if (columnHolder == null) {
return BitmapValues.EMPTY;
}
final BitmapIndex bitmaps = columnHolder.getBitmapIndex();
if (bitmaps == null) {
return BitmapValues.EMPTY;
}
if (dictId >= 0) {
return new ImmutableBitmapValues(bitmaps.getBitmap(dictId));
} else {
return BitmapValues.EMPTY;
}
}
Aggregations