public class StringUtf8DictionaryEncodedColumn extends Object implements DictionaryEncodedColumn<String>, NestedCommonFormatColumn
DictionaryEncodedColumn 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.
| Modifier and Type | Class and Description |
|---|---|
static class |
StringUtf8DictionaryEncodedColumn.MultiValueStringVectorObjectSelector
Base type for a
VectorObjectSelector for a dictionary encoded ColumnType.STRING
built around a ColumnarMultiInts. |
static class |
StringUtf8DictionaryEncodedColumn.StringMultiValueDimensionVectorSelector
Base type for a
MultiValueDimensionVectorSelector for a dictionary encoded ColumnType.STRING
built around a ColumnarMultiInts. |
static class |
StringUtf8DictionaryEncodedColumn.StringSingleValueDimensionVectorSelector
Base type for a
SingleValueDimensionVectorSelector for a dictionary encoded ColumnType.STRING
built around a ColumnarInts. |
static class |
StringUtf8DictionaryEncodedColumn.StringVectorObjectSelector
Base type for a
VectorObjectSelector for a dictionary encoded ColumnType.STRING
built around a ColumnarInts. |
NestedCommonFormatColumn.Format| Constructor and Description |
|---|
StringUtf8DictionaryEncodedColumn(ColumnarInts singleValueColumn,
ColumnarMultiInts multiValueColumn,
Indexed<ByteBuffer> utf8Dictionary) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCardinality() |
ColumnType |
getLogicalType() |
IndexedInts |
getMultiValueRow(int rowNum) |
int |
getSingleValueRow(int rowNum) |
Indexed<String> |
getStringDictionary() |
boolean |
hasMultipleValues() |
int |
length() |
int |
lookupId(String name) |
String |
lookupName(int id) |
HistoricalDimensionSelector |
makeDimensionSelector(ReadableOffset offset,
ExtractionFn extractionFn) |
MultiValueDimensionVectorSelector |
makeMultiValueDimensionVectorSelector(ReadableVectorOffset offset) |
SingleValueDimensionVectorSelector |
makeSingleValueDimensionVectorSelector(ReadableVectorOffset offset) |
VectorObjectSelector |
makeVectorObjectSelector(ReadableVectorOffset offset) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeColumnValueSelectorgetArrayDictionary, getDoubleDictionary, getFieldTypeInfo, getLongDictionarymakeVectorValueSelectorpublic StringUtf8DictionaryEncodedColumn(@Nullable ColumnarInts singleValueColumn, @Nullable ColumnarMultiInts multiValueColumn, Indexed<ByteBuffer> utf8Dictionary)
public int length()
length in interface DictionaryEncodedColumn<String>public boolean hasMultipleValues()
hasMultipleValues in interface DictionaryEncodedColumn<String>public int getSingleValueRow(int rowNum)
getSingleValueRow in interface DictionaryEncodedColumn<String>public IndexedInts getMultiValueRow(int rowNum)
getMultiValueRow in interface DictionaryEncodedColumn<String>@Nullable public String lookupName(int id)
lookupName in interface DictionaryEncodedColumn<String>public int lookupId(String name)
lookupId in interface DictionaryEncodedColumn<String>public int getCardinality()
getCardinality in interface DictionaryEncodedColumn<String>public HistoricalDimensionSelector makeDimensionSelector(ReadableOffset offset, @Nullable ExtractionFn extractionFn)
makeDimensionSelector in interface DictionaryEncodedColumn<String>public SingleValueDimensionVectorSelector makeSingleValueDimensionVectorSelector(ReadableVectorOffset offset)
makeSingleValueDimensionVectorSelector in interface DictionaryEncodedColumn<String>public MultiValueDimensionVectorSelector makeMultiValueDimensionVectorSelector(ReadableVectorOffset offset)
makeMultiValueDimensionVectorSelector in interface DictionaryEncodedColumn<String>public VectorObjectSelector makeVectorObjectSelector(ReadableVectorOffset offset)
makeVectorObjectSelector in interface BaseColumnpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic ColumnType getLogicalType()
getLogicalType in interface NestedCommonFormatColumnpublic Indexed<String> getStringDictionary()
getStringDictionary in interface NestedCommonFormatColumnCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.