@Named("Mock job-escalating analyzer") public class MockJobEscalatingAnalyzer implements Analyzer<ListResult<Integer>> { @Configured @ColumnProperty(escalateToMultipleJobs = true) InputColumn<?> column; @Override public void run(final InputRow row, final int distinctCount) { } @Override public ListResult<Integer> getResult() { final List<Integer> list = new ArrayList<>(); list.add(42); return new ListResult<>(list); } }
public AnalyzerComponentBuilder(final AnalysisJobBuilder analysisJobBuilder, final AnalyzerDescriptor<A> descriptor) { super(analysisJobBuilder, descriptor, AnalyzerComponentBuilder.class); final Set<ConfiguredPropertyDescriptor> requiredInputProperties = descriptor.getConfiguredPropertiesForInput(false); if (requiredInputProperties.size() == 1) { _escalatingInputProperty = requiredInputProperties.iterator().next(); final ColumnProperty columnProperty = _escalatingInputProperty.getAnnotation(ColumnProperty.class); _multipleJobsSupported = columnProperty != null && !_escalatingInputProperty.isArray() && columnProperty .escalateToMultipleJobs(); _escalatingInputColumns = new ArrayList<>(); } else { _multipleJobsSupported = false; _escalatingInputProperty = null; _escalatingInputColumns = Collections.emptyList(); } _localChangeListeners = new ArrayList<>(0); }
@ColumnProperty(escalateToMultipleJobs = true) InputColumn<?> _column;
for (final ConfiguredPropertyDescriptor propertyDescriptor : configuredProperties) { final ColumnProperty columnProperty = propertyDescriptor.getAnnotation(ColumnProperty.class); if (columnProperty != null && columnProperty.escalateToMultipleJobs()) { escalatingInputProperties.add(propertyDescriptor);
@Inject @Configured(value = PROPERTY_COLUMN, order = 1) @ColumnProperty(escalateToMultipleJobs = true) InputColumn<?> _column; @Inject
.escalateToMultipleJobs())) { componentBuilder .addInputColumns(getRelevantSourceColumns(sourceColumns, inputProperty), inputProperty);
@ColumnProperty @MappedProperty(PROPERTY_NAME_TABLE_NAME) String columnName;
@Inject @Configured(required = false) @ColumnProperty @MappedProperty(PROPERTY_NAME_TABLE_NAME) String[] conditionColumns; @Inject @Configured @ColumnProperty @MappedProperty(PROPERTY_NAME_TABLE_NAME) String[] outputColumns;
@Configured(order = 2) @Description("Names of columns in the target table, on which the values will be updated.") @ColumnProperty @MappedProperty(PROPERTY_NAME_VALUES) String[] columnNames; @Configured(order = 4) @Description("Names of columns in the target table, which form the conditions of the update.") @ColumnProperty @MappedProperty(PROPERTY_NAME_CONDITION_VALUES) String[] conditionColumnNames;
@Configured(order = 2) @Description("Names of columns in the target table, which form the condition of the delete.") @ColumnProperty @MappedProperty(PROPERTY_NAME_CONDITION_VALUES) String[] conditionColumnNames;
@Configured @Description("Names of columns in the target table.") @ColumnProperty @MappedProperty(PROPERTY_NAME_VALUES) String[] columnNames;
private static final Logger logger = LoggerFactory.getLogger(PatternFinderAnalyzer.class); @Configured(order = 1, value = PROPERTY_COLUMN) @ColumnProperty(escalateToMultipleJobs = true) InputColumn<String> column;