public boolean isUseDictionary(TblColRef col) { return getColDesc(col).isUsingDictionary(); }
public int getColumnBitIndex(TblColRef col) { return getColDesc(col).getBitIndex(); }
@Override public DimensionEncoding get(TblColRef col) { DimensionEncoding result = encMap.get(col); if (result == null) { RowKeyColDesc colDesc = cubeDesc.getRowkey().getColDesc(col); if (colDesc.isUsingDictionary()) { // special dictionary encoding Dictionary<String> dict = getDictionary(col); if (dict == null) { logger.warn("No dictionary found for dict-encoding column " + col + ", segment " + seg); result = new FixedLenDimEnc(0); } else { result = new DictionaryDimEnc(dict); } } else { // normal case result = DimensionEncodingFactory.create(colDesc.getEncodingName(), colDesc.getEncodingArgs(), colDesc.getEncodingVersion()); } encMap.put(col, result); } return result; }
public int getColumnLength(TblColRef col) { return getColDesc(col).getLength(); }
public String getDictionary(TblColRef col) { return getColDesc(col).getDictionary(); }
public int getColumnBitIndex(TblColRef col) { return getColDesc(col).getBitIndex(); }
public int getColumnLength(TblColRef col) { return getColDesc(col).getLength(); }
public String getDictionary(TblColRef col) { return getColDesc(col).getDictionary(); }
public int getColumnBitIndex(TblColRef col) { return getColDesc(col).getBitIndex(); }
public boolean isUseDictionary(TblColRef col) { return getColDesc(col).isUsingDictionary(); }
public int getColumnBitIndex(TblColRef col) { return getColDesc(col).getBitIndex(); }
@Override public DimensionEncoding get(TblColRef col) { DimensionEncoding result = encMap.get(col); if (result == null) { RowKeyColDesc colDesc = cubeDesc.getRowkey().getColDesc(col); if (colDesc.isUsingDictionary()) { // special dictionary encoding Dictionary<String> dict = getDictionary(col); if (dict == null) { logger.warn("No dictionary found for dict-encoding column " + col + ", segment " + seg); result = new FixedLenDimEnc(0); } else { result = new DictionaryDimEnc(dict); } } else { // normal case result = DimensionEncodingFactory.create(colDesc.getEncodingName(), colDesc.getEncodingArgs(), colDesc.getEncodingVersion()); } encMap.put(col, result); } return result; }