Interface DictionaryEncodedValueIndex<T>
-
- All Known Subinterfaces:
DictionaryEncodedStringValueIndex
- All Known Implementing Classes:
IndexedStringDictionaryEncodedStringValueIndex
public interface DictionaryEncodedValueIndex<T>This exposes a 'raw' view into bitmap value indexes forDictionaryEncodedColumn. This allows callers to directly retrieve bitmaps via dictionary ids. This interface should only be used when it is beneficial to operate in such a manner; callers of this class must either already know what value the dictionary id represents, not care at all, or have some other means to know exactly which bitmaps to retrieve. Most filter implementations should likely be using higher level index instead, such asStringValueSetIndexes,LexicographicalRangeIndexes,NumericRangeIndexes, orDruidPredicateIndexes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableBitmapgetBitmap(int idx)Get theImmutableBitmapfor dictionary id of the underlying dictionaryBitmapFactorygetBitmapFactory()intgetCardinality()Get the cardinality of the underlying value dictionaryTgetValue(int index)Get the value in the underlying value dictionary of the specified dictionary id
-
-
-
Method Detail
-
getBitmap
ImmutableBitmap getBitmap(int idx)
Get theImmutableBitmapfor dictionary id of the underlying dictionary
-
getCardinality
int getCardinality()
Get the cardinality of the underlying value dictionary
-
getValue
@Nullable T getValue(int index)
Get the value in the underlying value dictionary of the specified dictionary id
-
getBitmapFactory
BitmapFactory getBitmapFactory()
-
-