use of co.cask.cdap.etl.api.StageConfigurer in project cdap by caskdata.
the class StringValueFilterCompute method configurePipeline.
@Override
public void configurePipeline(PipelineConfigurer pipelineConfigurer) throws IllegalArgumentException {
StageConfigurer stageConfigurer = pipelineConfigurer.getStageConfigurer();
stageConfigurer.setOutputSchema(stageConfigurer.getInputSchema());
}
use of co.cask.cdap.etl.api.StageConfigurer in project cdap by caskdata.
the class FieldsPrefixTransform method configurePipeline.
@Override
public void configurePipeline(PipelineConfigurer pipelineConfigurer) throws IllegalArgumentException {
StageConfigurer stageConfigurer = pipelineConfigurer.getStageConfigurer();
try {
Schema outSchema = config.getOutputSchema(Schema.parseJson(config.schemaStr));
stageConfigurer.setOutputSchema(outSchema);
} catch (Exception e) {
throw new IllegalArgumentException("Invalid output schema: " + e.getMessage(), e);
}
}
use of co.cask.cdap.etl.api.StageConfigurer in project cdap by caskdata.
the class FlattenErrorTransform method configurePipeline.
@Override
public void configurePipeline(PipelineConfigurer pipelineConfigurer) throws IllegalArgumentException {
StageConfigurer stageConfigurer = pipelineConfigurer.getStageConfigurer();
Schema inputSchema = stageConfigurer.getInputSchema();
if (inputSchema != null) {
stageConfigurer.setOutputSchema(getOutputSchema(inputSchema));
}
}
use of co.cask.cdap.etl.api.StageConfigurer in project cdap by caskdata.
the class AllErrorTransform method configurePipeline.
@Override
public void configurePipeline(PipelineConfigurer pipelineConfigurer) throws IllegalArgumentException {
StageConfigurer stageConfigurer = pipelineConfigurer.getStageConfigurer();
stageConfigurer.setOutputSchema(stageConfigurer.getInputSchema());
}
use of co.cask.cdap.etl.api.StageConfigurer in project cdap by caskdata.
the class DropNullTransform method configurePipeline.
@Override
public void configurePipeline(PipelineConfigurer pipelineConfigurer) throws IllegalArgumentException {
StageConfigurer stageConfigurer = pipelineConfigurer.getStageConfigurer();
Schema inputSchema = stageConfigurer.getInputSchema();
if (inputSchema != null) {
stageConfigurer.setOutputSchema(getOutputSchema(inputSchema));
}
}
Aggregations