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 for
DictionaryEncodedColumn. 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 as StringValueSetIndexes,
LexicographicalRangeIndexes, NumericRangeIndexes, or DruidPredicateIndexes.-
Method Summary
Modifier and TypeMethodDescriptiongetBitmap(int idx) Get theImmutableBitmapfor dictionary id of the underlying dictionaryintGet the cardinality of the underlying value dictionarygetValue(int index) Get the value in the underlying value dictionary of the specified dictionary id
-
Method Details
-
getBitmap
Get theImmutableBitmapfor dictionary id of the underlying dictionary -
getCardinality
int getCardinality()Get the cardinality of the underlying value dictionary -
getValue
Get the value in the underlying value dictionary of the specified dictionary id -
getBitmapFactory
BitmapFactory getBitmapFactory()
-