Search in sources :

Example 1 with DuplicateRecordTableViewer

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;
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) DuplicateRecordTableViewer(org.talend.dataquality.record.linkage.ui.composite.tableviewer.DuplicateRecordTableViewer) Label(org.eclipse.swt.widgets.Label) RecordMatchingIndicator(org.talend.dataquality.indicators.columnset.RecordMatchingIndicator)

Aggregations

GridLayout (org.eclipse.swt.layout.GridLayout)1 Composite (org.eclipse.swt.widgets.Composite)1 Label (org.eclipse.swt.widgets.Label)1 RecordMatchingIndicator (org.talend.dataquality.indicators.columnset.RecordMatchingIndicator)1 DuplicateRecordTableViewer (org.talend.dataquality.record.linkage.ui.composite.tableviewer.DuplicateRecordTableViewer)1