public TransformerConsumer(final Transformer transformer, final TransformerJob transformerJob, final InputColumn<?>[] inputColumns, final RowProcessingPublisher publisher) { super(publisher, transformerJob, transformerJob); _transformer = transformer; _transformerJob = transformerJob; _inputColumns = inputColumns; _concurrent = determineConcurrent(); _outputRowCollectorProperties = _transformerJob.getDescriptor().getProvidedPropertiesByType(OutputRowCollector.class); }
private boolean determineConcurrent() { final Concurrent concurrent = _transformerJob.getDescriptor().getAnnotation(Concurrent.class); if (concurrent == null) { // transformers are by default concurrent return true; } return concurrent.value(); }
jobComponent.put("name", transformerJob.getName()); jobComponent.put("type", "transformer"); jobComponent.put("descriptor", transformerJob.getDescriptor().getDisplayName()); jobComponent.put("metadataProperties", transformerJob.getMetadataProperties()); descriptors.add(jobComponent);
final TransformerType transformerType = new TransformerType(); transformerType.setName(transformerJob.getName()); setDescriptor(transformerType, transformerJob.getDescriptor());
job.getDescriptor().getConfiguredPropertiesForInput(); elementType.getInput().addAll(createInputConfiguration(configuration, configuredProperties, columnMappings, stringConverter)); configuredProperties = job.getDescriptor().getConfiguredProperties(); elementType.setProperties(createPropertyConfiguration(configuration, configuredProperties, stringConverter, job.getMetadataProperties()));