Search in sources :

Example 16 with DateParameters

use of org.talend.dataquality.indicators.DateParameters in project tdq-studio-se by Talend.

the class YearFrequencyIndicatorImpl method getParameters.

@Override
public IndicatorParameters getParameters() {
    IndicatorParameters parameters = super.getParameters();
    if (parameters == null) {
        parameters = IndicatorsFactory.eINSTANCE.createIndicatorParameters();
    }
    DateParameters dateParameters = parameters.getDateParameters();
    if (dateParameters == null) {
        dateParameters = IndicatorsFactory.eINSTANCE.createDateParameters();
    }
    dateParameters.setDateAggregationType(DateGrain.YEAR);
    parameters.setDateParameters(dateParameters);
    this.setParameters(parameters);
    return parameters;
}
Also used : IndicatorParameters(org.talend.dataquality.indicators.IndicatorParameters) DateParameters(org.talend.dataquality.indicators.DateParameters)

Example 17 with DateParameters

use of org.talend.dataquality.indicators.DateParameters in project tdq-studio-se by Talend.

the class YearLowFrequencyIndicatorImpl method getParameters.

@Override
public IndicatorParameters getParameters() {
    IndicatorParameters parameters = super.getParameters();
    if (parameters == null) {
        parameters = IndicatorsFactory.eINSTANCE.createIndicatorParameters();
    }
    DateParameters dateParameters = parameters.getDateParameters();
    if (dateParameters == null) {
        dateParameters = IndicatorsFactory.eINSTANCE.createDateParameters();
    }
    dateParameters.setDateAggregationType(DateGrain.YEAR);
    parameters.setDateParameters(dateParameters);
    this.setParameters(parameters);
    return parameters;
}
Also used : IndicatorParameters(org.talend.dataquality.indicators.IndicatorParameters) DateParameters(org.talend.dataquality.indicators.DateParameters)

Aggregations

DateParameters (org.talend.dataquality.indicators.DateParameters)17 IndicatorParameters (org.talend.dataquality.indicators.IndicatorParameters)15 Domain (org.talend.dataquality.domain.Domain)4 DateGrain (org.talend.dataquality.indicators.DateGrain)3 FrequencyIndicator (org.talend.dataquality.indicators.FrequencyIndicator)3 TdColumn (org.talend.cwm.relational.TdColumn)2 TextParameters (org.talend.dataquality.indicators.TextParameters)2 IndicatorDefinition (org.talend.dataquality.indicators.definition.IndicatorDefinition)2 ArrayList (java.util.ArrayList)1 EClass (org.eclipse.emf.ecore.EClass)1 EFactoryImpl (org.eclipse.emf.ecore.impl.EFactoryImpl)1 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 TdExpression (org.talend.cwm.relational.TdExpression)1 ModelElementIndicator (org.talend.dataprofiler.core.model.ModelElementIndicator)1 ColumnIndicatorUnit (org.talend.dataprofiler.core.ui.editor.preview.ColumnIndicatorUnit)1 IndicatorUnit (org.talend.dataprofiler.core.ui.editor.preview.IndicatorUnit)1 RangeRestriction (org.talend.dataquality.domain.RangeRestriction)1 AverageLengthIndicator (org.talend.dataquality.indicators.AverageLengthIndicator)1 AvgLengthWithBlankIndicator (org.talend.dataquality.indicators.AvgLengthWithBlankIndicator)1 AvgLengthWithBlankNullIndicator (org.talend.dataquality.indicators.AvgLengthWithBlankNullIndicator)1