public String getDictionaryBuilderClass(TblColRef col) { if (dictionaries == null) return null; for (DictionaryDesc desc : dictionaries) { if (desc.getBuilderClass() != null) { // column that reuses other's dict need not be built, thus should not reach here if (col.equals(desc.getColumnRef())) { return desc.getBuilderClass(); } } } return null; }
public List<TblColRef> getAllGlobalDictColumns() { List<TblColRef> globalDictCols = new ArrayList<TblColRef>(); List<DictionaryDesc> dictionaryDescList = getDictionaries(); if (dictionaryDescList == null) { return globalDictCols; } for (DictionaryDesc dictionaryDesc : dictionaryDescList) { String cls = dictionaryDesc.getBuilderClass(); if (GlobalDictionaryBuilder.class.getName().equals(cls) || SegmentAppendTrieDictBuilder.class.getName().equals(cls)) globalDictCols.add(dictionaryDesc.getColumnRef()); } return globalDictCols; }
TblColRef dictCol = dictDesc.getColumnRef(); TblColRef reuseCol = dictDesc.getResuseColumnRef(); String builderClass = dictDesc.getBuilderClass();
public String getDictionaryBuilderClass(TblColRef col) { if (dictionaries == null) return null; for (DictionaryDesc desc : dictionaries) { if (desc.getBuilderClass() != null) { // column that reuses other's dict need not be built, thus should not reach here if (col.equals(desc.getColumnRef())) { return desc.getBuilderClass(); } } } return null; }
public List<TblColRef> getAllGlobalDictColumns() { List<TblColRef> globalDictCols = new ArrayList<TblColRef>(); List<DictionaryDesc> dictionaryDescList = getDictionaries(); if (dictionaryDescList == null) { return globalDictCols; } for (DictionaryDesc dictionaryDesc : dictionaryDescList) { String cls = dictionaryDesc.getBuilderClass(); if (GlobalDictionaryBuilder.class.getName().equals(cls) || SegmentAppendTrieDictBuilder.class.getName().equals(cls)) globalDictCols.add(dictionaryDesc.getColumnRef()); } return globalDictCols; }
TblColRef dictCol = dictDesc.getColumnRef(); TblColRef reuseCol = dictDesc.getResuseColumnRef(); String builderClass = dictDesc.getBuilderClass();