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>,SelectableColumn,NestedCommonFormatColumn
public class StringUtf8DictionaryEncodedColumn
extends Object
implements DictionaryEncodedColumn<String>, NestedCommonFormatColumn
DictionaryEncodedColumn<String> for a column which has a ByteBuffer based UTF-8 dictionary.
Implements NestedCommonFormatColumn so it can be used as a reader for single value string specializations
of AutoTypeColumnIndexer.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBase type for aVectorObjectSelectorfor a dictionary encodedColumnType.STRINGbuilt around aColumnarMultiInts.static classBase type for aMultiValueDimensionVectorSelectorfor a dictionary encodedColumnType.STRINGbuilt around aColumnarMultiInts.static classBase type for aSingleValueDimensionVectorSelectorfor a dictionary encodedColumnType.STRINGbuilt around aColumnarInts.static classBase 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
ConstructorsConstructorDescriptionStringUtf8DictionaryEncodedColumn(ColumnarInts singleValueColumn, ColumnarMultiInts multiValueColumn, Indexed<ByteBuffer> utf8Dictionary, BitmapFactory bitmapFactory) -
Method Summary
Modifier and TypeMethodDescription<T> TRequest an implementation of a particular interface.voidclose()intgetMultiValueRow(int rowNum) intgetSingleValueRow(int rowNum) booleanintlength()intlookupName(int id) makeDimensionSelector(ReadableOffset offset, ExtractionFn extractionFn) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.segment.column.BaseColumn
makeVectorValueSelectorMethods inherited from interface org.apache.druid.segment.column.DictionaryEncodedColumn
makeColumnValueSelectorMethods inherited from interface org.apache.druid.segment.nested.NestedCommonFormatColumn
getArrayDictionary, getDoubleDictionary, getFieldTypeInfo, getLongDictionary
-
Constructor Details
-
StringUtf8DictionaryEncodedColumn
public StringUtf8DictionaryEncodedColumn(@Nullable ColumnarInts singleValueColumn, @Nullable ColumnarMultiInts multiValueColumn, Indexed<ByteBuffer> utf8Dictionary, BitmapFactory bitmapFactory)
-
-
Method Details
-
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
- Specified by:
getMultiValueRowin interfaceDictionaryEncodedColumn<String>
-
lookupName
- Specified by:
lookupNamein interfaceDictionaryEncodedColumn<String>
-
lookupId
- Specified by:
lookupIdin interfaceDictionaryEncodedColumn<String>
-
getCardinality
public int getCardinality()- Specified by:
getCardinalityin interfaceDictionaryEncodedColumn<String>
-
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
- Specified by:
makeVectorObjectSelectorin interfaceBaseColumn
-
as
Description copied from interface:SelectableColumnRequest an implementation of a particular interface. Physical nested columns, and virtual columns that act as a nested column, should implement:-
NestedColumnTypeInspector, required. -
NestedColumnSelectorFactory, required. -
NestedVectorColumnSelectorFactory, required. -
NestedColumnIndexSupplier, if the column has indexes.
- Specified by:
asin interfaceSelectableColumn- Type Parameters:
T- desired interface- Parameters:
clazz- desired interface- Returns:
- instance of clazz, or null if the interface is not supported by this segment
-
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getLogicalType
- Specified by:
getLogicalTypein interfaceNestedCommonFormatColumn
-
getStringDictionary
- Specified by:
getStringDictionaryin interfaceNestedCommonFormatColumn
-