public class HBaseSource extends ReferenceBatchSource<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Result,co.cask.cdap.api.data.format.StructuredRecord>
PLUGIN_TYPE| Constructor and Description |
|---|
HBaseSource(HBaseConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
configurePipeline(PipelineConfigurer pipelineConfigurer) |
void |
initialize(BatchRuntimeContext context) |
void |
prepareRun(BatchSourceContext context) |
void |
transform(co.cask.cdap.api.dataset.lib.KeyValue<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Result> input,
Emitter<co.cask.cdap.api.data.format.StructuredRecord> emitter) |
destroyonRunFinishpublic HBaseSource(HBaseConfig config)
public void prepareRun(BatchSourceContext context) throws Exception
prepareRun in interface SubmitterLifecycle<BatchSourceContext>prepareRun in class BatchConfigurable<BatchSourceContext>Exceptionpublic void configurePipeline(PipelineConfigurer pipelineConfigurer)
configurePipeline in interface PipelineConfigurableconfigurePipeline in class ReferenceBatchSource<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Result,co.cask.cdap.api.data.format.StructuredRecord>public void initialize(BatchRuntimeContext context) throws Exception
initialize in interface StageLifecycle<BatchRuntimeContext>initialize in class BatchSource<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Result,co.cask.cdap.api.data.format.StructuredRecord>Exceptionpublic void transform(co.cask.cdap.api.dataset.lib.KeyValue<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Result> input,
Emitter<co.cask.cdap.api.data.format.StructuredRecord> emitter)
throws Exception
transform in interface Transformation<co.cask.cdap.api.dataset.lib.KeyValue<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Result>,co.cask.cdap.api.data.format.StructuredRecord>transform in class BatchSource<org.apache.hadoop.hbase.io.ImmutableBytesWritable,org.apache.hadoop.hbase.client.Result,co.cask.cdap.api.data.format.StructuredRecord>ExceptionCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.