use of org.apache.carbondata.core.devapi.BiDictionary in project carbondata by apache.
the class TableDictionaryGenerator method size.
public Integer size(DictionaryMessage key) {
CarbonMetadata metadata = CarbonMetadata.getInstance();
CarbonTable carbonTable = metadata.getCarbonTable(key.getTableUniqueName());
CarbonDimension dimension = carbonTable.getPrimitiveDimensionByName(key.getTableUniqueName(), key.getColumnName());
DictionaryGenerator<Integer, String> generator = columnMap.get(dimension.getColumnId());
return ((BiDictionary) generator).size();
}
Aggregations