public class StringFrontCodedDictionaryEncodedColumn extends Object implements DictionaryEncodedColumn<String>
DictionaryEncodedColumn for a column which uses a FrontCodedIndexed to store its value
dictionary, which 'delta encodes' strings (instead of GenericIndexed like
StringDictionaryEncodedColumn).
This class is otherwise nearly identical to StringDictionaryEncodedColumn other than the dictionary
difference.| Constructor and Description |
|---|
StringFrontCodedDictionaryEncodedColumn(ColumnarInts singleValueColumn,
ColumnarMultiInts multiValueColumn,
FrontCodedIndexed utf8Dictionary) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getCardinality() |
IndexedInts |
getMultiValueRow(int rowNum) |
int |
getSingleValueRow(int rowNum) |
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, waitmakeColumnValueSelectormakeVectorValueSelectorpublic StringFrontCodedDictionaryEncodedColumn(@Nullable ColumnarInts singleValueColumn, @Nullable ColumnarMultiInts multiValueColumn, FrontCodedIndexed 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 AutoCloseableIOExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.