Skip to content

Commit

Permalink
Merge pull request #38 from data-integrations/feature/CDAP-14422-add-req
Browse files Browse the repository at this point in the history
CDAP-14422 Mark Requirement for Kafka BatchSource
  • Loading branch information
rohitsinha54 authored Oct 10, 2018
2 parents c45c214 + 5dd01d8 commit c59fe46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import co.cask.cdap.api.annotation.Macro;
import co.cask.cdap.api.annotation.Name;
import co.cask.cdap.api.annotation.Plugin;
import co.cask.cdap.api.annotation.Requirements;
import co.cask.cdap.api.common.Bytes;
import co.cask.cdap.api.data.batch.Input;
import co.cask.cdap.api.data.format.FormatSpecification;
Expand Down Expand Up @@ -67,6 +68,7 @@
@Plugin(type = BatchSource.PLUGIN_TYPE)
@Name(KafkaBatchSource.NAME)
@Description("Kafka batch source.")
@Requirements(datasetTypes = {KeyValueTable.TYPE})
public class KafkaBatchSource extends BatchSource<KafkaKey, KafkaMessage, StructuredRecord> {
public static final String NAME = "Kafka";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import co.cask.cdap.api.annotation.Macro;
import co.cask.cdap.api.annotation.Name;
import co.cask.cdap.api.annotation.Plugin;
import co.cask.cdap.api.annotation.Requirements;
import co.cask.cdap.api.common.Bytes;
import co.cask.cdap.api.data.batch.Input;
import co.cask.cdap.api.data.format.FormatSpecification;
Expand Down Expand Up @@ -64,6 +65,7 @@
@Plugin(type = BatchSource.PLUGIN_TYPE)
@Name(KafkaBatchSource.NAME)
@Description("Kafka batch source.")
@Requirements(datasetTypes = {KeyValueTable.TYPE})
public class KafkaBatchSource extends BatchSource<KafkaKey, KafkaMessage, StructuredRecord> {
public static final String NAME = "Kafka";

Expand Down

0 comments on commit c59fe46

Please sign in to comment.