use of org.talend.dq.analysis.TableAnalysisHandler in project tdq-studio-se by Talend.
the class BusinessRuleAnalysisDetailsPage method recomputeIndicators.
public void recomputeIndicators() {
analysisHandler = new TableAnalysisHandler();
analysisHandler.setAnalysis(getCurrentModelElement());
stringDataFilter = analysisHandler.getStringDataFilter();
EList<ModelElement> analyzedTables = analysisHandler.getAnalyzedTables();
List<TableIndicator> tableIndicatorList = new ArrayList<TableIndicator>();
for (ModelElement element : analyzedTables) {
NamedColumnSet set = SwitchHelpers.NAMED_COLUMN_SET_SWITCH.doSwitch(element);
if (set == null) {
continue;
}
TableIndicator currentTableIndicator = new TableIndicator(set);
Collection<Indicator> indicatorList = analysisHandler.getIndicators(set);
currentTableIndicator.setIndicators(indicatorList.toArray(new Indicator[indicatorList.size()]));
tableIndicatorList.add(currentTableIndicator);
}
currentTableIndicators = tableIndicatorList.toArray(new TableIndicator[tableIndicatorList.size()]);
}
Aggregations