public class MockRuntimeDatasetSource extends BatchSource<byte[],Row,co.cask.cdap.api.data.format.StructuredRecord>
| Modifier and Type | Class and Description |
|---|---|
static class |
MockRuntimeDatasetSource.Config
Config for the source.
|
| Modifier and Type | Field and Description |
|---|---|
static PluginClass |
PLUGIN_CLASS |
PLUGIN_TYPE| Constructor and Description |
|---|
MockRuntimeDatasetSource(MockRuntimeDatasetSource.Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePipeline(PipelineConfigurer pipelineConfigurer) |
static ETLPlugin |
getPlugin(String tableName,
String runtimeDatasetName) |
void |
initialize(BatchRuntimeContext context) |
void |
prepareRun(BatchSourceContext context) |
void |
transform(KeyValue<byte[],Row> input,
Emitter<co.cask.cdap.api.data.format.StructuredRecord> emitter) |
static void |
writeInput(DataSetManager<Table> tableManager,
Iterable<co.cask.cdap.api.data.format.StructuredRecord> records)
Used to write the input records for the pipeline run.
|
destroyonRunFinishpublic static final PluginClass PLUGIN_CLASS
public MockRuntimeDatasetSource(MockRuntimeDatasetSource.Config config)
public void configurePipeline(PipelineConfigurer pipelineConfigurer)
configurePipeline in interface PipelineConfigurableconfigurePipeline in class BatchConfigurable<BatchSourceContext>public void initialize(BatchRuntimeContext context) throws Exception
initialize in interface StageLifecycle<BatchRuntimeContext>initialize in class BatchSource<byte[],Row,co.cask.cdap.api.data.format.StructuredRecord>Exceptionpublic void prepareRun(BatchSourceContext context) throws Exception
prepareRun in interface SubmitterLifecycle<BatchSourceContext>prepareRun in class BatchConfigurable<BatchSourceContext>Exceptionpublic void transform(KeyValue<byte[],Row> input, Emitter<co.cask.cdap.api.data.format.StructuredRecord> emitter) throws Exception
transform in interface Transformation<KeyValue<byte[],Row>,co.cask.cdap.api.data.format.StructuredRecord>transform in class BatchSource<byte[],Row,co.cask.cdap.api.data.format.StructuredRecord>Exceptionpublic static void writeInput(DataSetManager<Table> tableManager, Iterable<co.cask.cdap.api.data.format.StructuredRecord> records) throws Exception
tableManager - dataset manager used to write to the source datasetrecords - records that should be the input for the pipelineExceptionCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.