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
Constructors Constructor Description IndexedStringDictionaryEncodedStringValueIndex(BitmapFactory bitmapFactory, TDictionary dictionary, Indexed<ImmutableBitmap> bitmaps)
-
Method Summary
All Methods Instance Methods Concrete 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 dictionaryStringgetValue(int index)Get the value in the underlying value dictionary of the specified dictionary id
-
-
-
Constructor Detail
-
IndexedStringDictionaryEncodedStringValueIndex
public IndexedStringDictionaryEncodedStringValueIndex(BitmapFactory bitmapFactory, TDictionary dictionary, Indexed<ImmutableBitmap> bitmaps)
-
-
Method Detail
-
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
@Nullable public String getValue(int index)
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
public BitmapFactory getBitmapFactory()
- Specified by:
getBitmapFactoryin interfaceDictionaryEncodedValueIndex<TDictionary extends Indexed<String>>
-
getBitmap
public ImmutableBitmap getBitmap(int idx)
Description copied from interface:DictionaryEncodedValueIndexGet theImmutableBitmapfor dictionary id of the underlying dictionary- Specified by:
getBitmapin interfaceDictionaryEncodedValueIndex<TDictionary extends Indexed<String>>
-
-