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 Details

    • getBitmap

      ImmutableBitmap getBitmap(int idx)
      Get the ImmutableBitmap for 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()