use of org.apache.druid.segment.column.BitmapIndex 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