Package org.apache.druid.segment.index
Class IndexedStringDictionaryEncodedStringValueIndex<TDictionary extends Indexed<String>>
java.lang.Object
org.apache.druid.segment.index.IndexedStringDictionaryEncodedStringValueIndex<TDictionary>
- All Implemented Interfaces:
DictionaryEncodedStringValueIndex,DictionaryEncodedValueIndex<String>
public final class IndexedStringDictionaryEncodedStringValueIndex<TDictionary extends Indexed<String>>
extends Object
implements DictionaryEncodedStringValueIndex
-
Constructor Summary
ConstructorsConstructorDescriptionIndexedStringDictionaryEncodedStringValueIndex(BitmapFactory bitmapFactory, TDictionary dictionary, Indexed<ImmutableBitmap> bitmaps) -
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
-
Constructor Details
-
IndexedStringDictionaryEncodedStringValueIndex
public IndexedStringDictionaryEncodedStringValueIndex(BitmapFactory bitmapFactory, TDictionary dictionary, Indexed<ImmutableBitmap> bitmaps)
-
-
Method Details
-
getCardinality
public int getCardinality()Description copied from interface:DictionaryEncodedValueIndexGet the cardinality of the underlying value dictionary- Specified by:
getCardinalityin interfaceDictionaryEncodedValueIndex<TDictionary extends Indexed<String>>
-
getValue
Description copied from interface:DictionaryEncodedValueIndexGet the value in the underlying value dictionary of the specified dictionary id- Specified by:
getValuein interfaceDictionaryEncodedValueIndex<TDictionary extends Indexed<String>>
-
getBitmapFactory
- Specified by:
getBitmapFactoryin interfaceDictionaryEncodedValueIndex<TDictionary extends Indexed<String>>
-
getBitmap
Description copied from interface:DictionaryEncodedValueIndexGet theImmutableBitmapfor dictionary id of the underlying dictionary- Specified by:
getBitmapin interfaceDictionaryEncodedValueIndex<TDictionary extends Indexed<String>>
-