public class DBSink extends ReferenceBatchSink<io.cdap.cdap.api.data.format.StructuredRecord,DBRecord,org.apache.hadoop.io.NullWritable>
| Modifier and Type | Class and Description |
|---|---|
static class |
DBSink.DBSinkConfig
PluginConfig for DBSink |
FORMAT_PLUGIN_TYPE, PLUGIN_TYPE| Constructor and Description |
|---|
DBSink(DBSink.DBSinkConfig dbSinkConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePipeline(PipelineConfigurer pipelineConfigurer) |
void |
destroy() |
void |
initialize(BatchRuntimeContext context) |
void |
prepareRun(BatchSinkContext context) |
void |
transform(io.cdap.cdap.api.data.format.StructuredRecord input,
Emitter<io.cdap.cdap.api.dataset.lib.KeyValue<DBRecord,org.apache.hadoop.io.NullWritable>> emitter) |
onRunFinishpublic DBSink(DBSink.DBSinkConfig dbSinkConfig)
public void configurePipeline(PipelineConfigurer pipelineConfigurer)
configurePipeline in interface PipelineConfigurableconfigurePipeline in class ReferenceBatchSink<io.cdap.cdap.api.data.format.StructuredRecord,DBRecord,org.apache.hadoop.io.NullWritable>public void prepareRun(BatchSinkContext context)
prepareRun in interface SubmitterLifecycle<BatchSinkContext>prepareRun in class BatchConfigurable<BatchSinkContext>public void initialize(BatchRuntimeContext context) throws Exception
initialize in interface StageLifecycle<BatchRuntimeContext>initialize in class BatchSink<io.cdap.cdap.api.data.format.StructuredRecord,DBRecord,org.apache.hadoop.io.NullWritable>Exceptionpublic void transform(io.cdap.cdap.api.data.format.StructuredRecord input,
Emitter<io.cdap.cdap.api.dataset.lib.KeyValue<DBRecord,org.apache.hadoop.io.NullWritable>> emitter)
throws Exception
transform in interface Transformation<io.cdap.cdap.api.data.format.StructuredRecord,io.cdap.cdap.api.dataset.lib.KeyValue<DBRecord,org.apache.hadoop.io.NullWritable>>transform in class BatchSink<io.cdap.cdap.api.data.format.StructuredRecord,DBRecord,org.apache.hadoop.io.NullWritable>Exceptionpublic void destroy()
destroy in interface Destroyabledestroy in class BatchSink<io.cdap.cdap.api.data.format.StructuredRecord,DBRecord,org.apache.hadoop.io.NullWritable>Copyright © 2019 CDAP Licensed under the Apache License, Version 2.0.