Search in sources :

Example 16 with StageConfigurer

use of io.cdap.cdap.etl.api.StageConfigurer in project cdap by caskdata.

the class SleepTransform method configurePipeline.

@Override
public void configurePipeline(PipelineConfigurer pipelineConfigurer) throws IllegalArgumentException {
    if (config.millis < 1) {
        throw new IllegalArgumentException("millis must be at least 1.");
    }
    StageConfigurer stageConfigurer = pipelineConfigurer.getStageConfigurer();
    stageConfigurer.setOutputSchema(stageConfigurer.getInputSchema());
}
Also used : StageConfigurer(io.cdap.cdap.etl.api.StageConfigurer)

Example 17 with StageConfigurer

use of io.cdap.cdap.etl.api.StageConfigurer in project cdap by caskdata.

the class DistinctReducibleAggregator method configurePipeline.

@Override
public void configurePipeline(PipelineConfigurer pipelineConfigurer) {
    StageConfigurer stageConfigurer = pipelineConfigurer.getStageConfigurer();
    Schema inputSchema = stageConfigurer.getInputSchema();
    this.outputSchema = getOutputSchema(stageConfigurer.getFailureCollector(), inputSchema, config.getFields());
    stageConfigurer.setOutputSchema(outputSchema);
}
Also used : StageConfigurer(io.cdap.cdap.etl.api.StageConfigurer) Schema(io.cdap.cdap.api.data.schema.Schema)

Example 18 with StageConfigurer

use of io.cdap.cdap.etl.api.StageConfigurer in project cdap by caskdata.

the class StringValueFilterCompute method configurePipeline.

@Override
public void configurePipeline(PipelineConfigurer pipelineConfigurer) {
    StageConfigurer stageConfigurer = pipelineConfigurer.getStageConfigurer();
    stageConfigurer.setOutputSchema(stageConfigurer.getInputSchema());
}
Also used : StageConfigurer(io.cdap.cdap.etl.api.StageConfigurer)

Aggregations

StageConfigurer (io.cdap.cdap.etl.api.StageConfigurer)18 Schema (io.cdap.cdap.api.data.schema.Schema)8 FailureCollector (io.cdap.cdap.etl.api.FailureCollector)1