use of org.talend.dataquality.record.linkage.ui.composite.tableviewer.DuplicateRecordTableViewer in project tdq-studio-se by Talend.
the class DuplicateRecordStatisticsSection method createSubContent.
/*
* (non-Javadoc)
*
* @see
* org.talend.dataquality.record.linkage.ui.section.AbstractMatchAnaysisTableSection#createSubContent(org.eclipse
* .swt.widgets.Composite)
*/
@Override
protected Composite createSubContent(Composite sectionClient) {
duplicateRecordTableViewer = new DuplicateRecordTableViewer(sectionClient, SWT.NONE);
setDupRecordTableInput();
// Add the merged records information: only for T-swoosh
final Object[] IndicatorList = MatchRuleAnlaysisUtils.getNeedIndicatorFromAna(analysis);
final RecordMatchingIndicator recordMatchingIndicator = (RecordMatchingIndicator) IndicatorList[0];
if (recordMatchingIndicator.getBuiltInMatchRuleDefinition().getRecordLinkageAlgorithm().equals(RecordMatcherType.T_SwooshAlgorithm.name())) {
Composite mergedRecordComp = new Composite(sectionClient, SWT.NONE);
mergedRecordComp.setLayout(new GridLayout(2, true));
Label mergedRcdLabel = new Label(mergedRecordComp, SWT.NONE);
// $NON-NLS-1$
mergedRcdLabel.setText(DefaultMessagesImpl.getString("DuplicateRecordStatisticsSection.MergedRecord"));
mergedRecordsValue = new Label(mergedRecordComp, SWT.NONE);
Long mergedRecordsCount = computeMergedRecords();
mergedRecordsValue.setText(mergedRecordsCount.toString());
}
return sectionClient;
}
Aggregations