Package org.apache.druid.segment.column
Class StringUtf8DictionaryEncodedColumn
- java.lang.Object
-
- org.apache.druid.segment.column.StringUtf8DictionaryEncodedColumn
-
- All Implemented Interfaces:
Closeable,AutoCloseable,BaseColumn,DictionaryEncodedColumn<String>,NestedCommonFormatColumn
public class StringUtf8DictionaryEncodedColumn extends Object implements DictionaryEncodedColumn<String>, NestedCommonFormatColumn
DictionaryEncodedColumnfor a column which has aByteBufferbased UTF-8 dictionary.Implements
NestedCommonFormatColumnso it can be used as a reader for single value string specializations ofAutoTypeColumnIndexer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStringUtf8DictionaryEncodedColumn.MultiValueStringVectorObjectSelectorBase type for aVectorObjectSelectorfor a dictionary encodedColumnType.STRINGbuilt around aColumnarMultiInts.static classStringUtf8DictionaryEncodedColumn.StringMultiValueDimensionVectorSelectorBase type for aMultiValueDimensionVectorSelectorfor a dictionary encodedColumnType.STRINGbuilt around aColumnarMultiInts.static classStringUtf8DictionaryEncodedColumn.StringSingleValueDimensionVectorSelectorBase type for aSingleValueDimensionVectorSelectorfor a dictionary encodedColumnType.STRINGbuilt around aColumnarInts.static classStringUtf8DictionaryEncodedColumn.StringVectorObjectSelectorBase type for aVectorObjectSelectorfor a dictionary encodedColumnType.STRINGbuilt around aColumnarInts.-
Nested classes/interfaces inherited from interface org.apache.druid.segment.nested.NestedCommonFormatColumn
NestedCommonFormatColumn.Format
-
-
Constructor Summary
Constructors Constructor Description StringUtf8DictionaryEncodedColumn(ColumnarInts singleValueColumn, ColumnarMultiInts multiValueColumn, Indexed<ByteBuffer> utf8Dictionary, BitmapFactory bitmapFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tas(Class<? extends T> clazz)voidclose()BitmapFactorygetBitmapFactory()intgetCardinality()ColumnTypegetLogicalType()IndexedIntsgetMultiValueRow(int rowNum)intgetSingleValueRow(int rowNum)Indexed<String>getStringDictionary()booleanhasMultipleValues()intlength()intlookupId(String name)StringlookupName(int id)HistoricalDimensionSelectormakeDimensionSelector(ReadableOffset offset, ExtractionFn extractionFn)MultiValueDimensionVectorSelectormakeMultiValueDimensionVectorSelector(ReadableVectorOffset offset)SingleValueDimensionVectorSelectormakeSingleValueDimensionVectorSelector(ReadableVectorOffset offset)VectorObjectSelectormakeVectorObjectSelector(ReadableVectorOffset offset)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.segment.column.BaseColumn
makeVectorValueSelector
-
Methods inherited from interface org.apache.druid.segment.column.DictionaryEncodedColumn
makeColumnValueSelector
-
Methods inherited from interface org.apache.druid.segment.nested.NestedCommonFormatColumn
getArrayDictionary, getDoubleDictionary, getFieldTypeInfo, getLongDictionary
-
-
-
-
Constructor Detail
-
StringUtf8DictionaryEncodedColumn
public StringUtf8DictionaryEncodedColumn(@Nullable ColumnarInts singleValueColumn, @Nullable ColumnarMultiInts multiValueColumn, Indexed<ByteBuffer> utf8Dictionary, BitmapFactory bitmapFactory)
-
-
Method Detail
-
length
public int length()
- Specified by:
lengthin interfaceDictionaryEncodedColumn<String>
-
hasMultipleValues
public boolean hasMultipleValues()
- Specified by:
hasMultipleValuesin interfaceDictionaryEncodedColumn<String>
-
getSingleValueRow
public int getSingleValueRow(int rowNum)
- Specified by:
getSingleValueRowin interfaceDictionaryEncodedColumn<String>
-
getMultiValueRow
public IndexedInts getMultiValueRow(int rowNum)
- Specified by:
getMultiValueRowin interfaceDictionaryEncodedColumn<String>
-
lookupName
@Nullable public String lookupName(int id)
- Specified by:
lookupNamein interfaceDictionaryEncodedColumn<String>
-
lookupId
public int lookupId(String name)
- Specified by:
lookupIdin interfaceDictionaryEncodedColumn<String>
-
getCardinality
public int getCardinality()
- Specified by:
getCardinalityin interfaceDictionaryEncodedColumn<String>
-
getBitmapFactory
public BitmapFactory getBitmapFactory()
-
makeDimensionSelector
public HistoricalDimensionSelector makeDimensionSelector(ReadableOffset offset, @Nullable ExtractionFn extractionFn)
- Specified by:
makeDimensionSelectorin interfaceDictionaryEncodedColumn<String>
-
makeSingleValueDimensionVectorSelector
public SingleValueDimensionVectorSelector makeSingleValueDimensionVectorSelector(ReadableVectorOffset offset)
- Specified by:
makeSingleValueDimensionVectorSelectorin interfaceDictionaryEncodedColumn<String>
-
makeMultiValueDimensionVectorSelector
public MultiValueDimensionVectorSelector makeMultiValueDimensionVectorSelector(ReadableVectorOffset offset)
- Specified by:
makeMultiValueDimensionVectorSelectorin interfaceDictionaryEncodedColumn<String>
-
makeVectorObjectSelector
public VectorObjectSelector makeVectorObjectSelector(ReadableVectorOffset offset)
- Specified by:
makeVectorObjectSelectorin interfaceBaseColumn
-
as
@Nullable public <T> T as(Class<? extends T> clazz)
- Specified by:
asin interfaceBaseColumn
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getLogicalType
public ColumnType getLogicalType()
- Specified by:
getLogicalTypein interfaceNestedCommonFormatColumn
-
getStringDictionary
public Indexed<String> getStringDictionary()
- Specified by:
getStringDictionaryin interfaceNestedCommonFormatColumn
-
-