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 ImmutableBitmap
getBitmap(int idx)
Get theImmutableBitmap
for dictionary id of the underlying dictionaryBitmapFactory
getBitmapFactory()
int
getCardinality()
Get the cardinality of the underlying value dictionaryString
getValue(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:DictionaryEncodedValueIndex
Get the cardinality of the underlying value dictionary- Specified by:
getCardinality
in interfaceDictionaryEncodedValueIndex<TDictionary extends Indexed<String>>
-
getValue
@Nullable public String getValue(int index)
Description copied from interface:DictionaryEncodedValueIndex
Get the value in the underlying value dictionary of the specified dictionary id- Specified by:
getValue
in interfaceDictionaryEncodedValueIndex<TDictionary extends Indexed<String>>
-
getBitmapFactory
public BitmapFactory getBitmapFactory()
- Specified by:
getBitmapFactory
in interfaceDictionaryEncodedValueIndex<TDictionary extends Indexed<String>>
-
getBitmap
public ImmutableBitmap getBitmap(int idx)
Description copied from interface:DictionaryEncodedValueIndex
Get theImmutableBitmap
for dictionary id of the underlying dictionary- Specified by:
getBitmap
in interfaceDictionaryEncodedValueIndex<TDictionary extends Indexed<String>>
-
-