public class SimpleDictionaryEncodedColumn extends Object implements DictionaryEncodedColumn
Constructor and Description |
---|
SimpleDictionaryEncodedColumn(IndexedInts singleValueColumn,
IndexedMultivalue<IndexedInts> 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) |
public SimpleDictionaryEncodedColumn(IndexedInts singleValueColumn, IndexedMultivalue<IndexedInts> multiValueColumn, CachingIndexed<String> cachedLookups)
public int length()
length
in interface DictionaryEncodedColumn
public boolean hasMultipleValues()
hasMultipleValues
in interface DictionaryEncodedColumn
public int getSingleValueRow(int rowNum)
getSingleValueRow
in interface DictionaryEncodedColumn
public IndexedInts getMultiValueRow(int rowNum)
getMultiValueRow
in interface DictionaryEncodedColumn
public String lookupName(int id)
lookupName
in interface DictionaryEncodedColumn
public int lookupId(String name)
lookupId
in interface DictionaryEncodedColumn
public int getCardinality()
getCardinality
in interface DictionaryEncodedColumn
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2011–2015. All rights reserved.