use of org.talend.dataquality.indicators.columnset.impl.AllMatchIndicatorImpl in project tdq-studio-se by Talend.
the class PatternsSelectPage method organizeTableInput.
/**
* zshen.
*
* @return the input of table.
*/
private List<Map<Integer, RegexpMatchingIndicator>> organizeTableInput() {
List<Map<Integer, RegexpMatchingIndicator>> returnList = new ArrayList<Map<Integer, RegexpMatchingIndicator>>();
AllMatchIndicatorImpl allMatchIndicator = this.selectPatternsWizard.getAllMatchIndicator();
if (allMatchIndicator == null) {
return returnList;
}
List<ModelElement> analysisColumns = this.selectPatternsWizard.getAllMatchIndicator().getAnalyzedColumns();
List<RegexpMatchingIndicator> regexpMatchingIndicatorList = this.selectPatternsWizard.getAllMatchIndicator().getCompositeRegexMatchingIndicators();
for (RegexpMatchingIndicator regexIndicator : regexpMatchingIndicatorList) {
int index = analysisColumns.indexOf(regexIndicator.getAnalyzedElement());
Map<Integer, RegexpMatchingIndicator> returnMap = getMapLocation(returnList, index);
// new HashMap<Integer, String>();
returnMap.put(index, regexIndicator);
if (returnMap.size() == 1) {
returnList.add(returnMap);
}
}
return returnList;
}
Aggregations