public class SimpleDictionaryEncodedColumn extends Object implements DictionaryEncodedColumn<String>
Constructor and Description |
---|
SimpleDictionaryEncodedColumn(ColumnarInts singleValueColumn,
ColumnarMultiInts multiValueColumn,
CachingIndexed<String> cachedLookups) |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeColumnValueSelector
public SimpleDictionaryEncodedColumn(ColumnarInts singleValueColumn, ColumnarMultiInts multiValueColumn, CachingIndexed<String> cachedLookups)
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>
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 void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2018. All rights reserved.