Created
December 29, 2018 01:32
-
-
Save sandboxws/d05110d08c3d389858fd011ae02d2ec9 to your computer and use it in GitHub Desktop.
Custom Dataflow PipelineOptions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.sandboxws.beam; | |
| import org.apache.beam.runners.dataflow.options.DataflowPipelineOptions; | |
| import org.apache.beam.sdk.options.Default; | |
| import org.apache.beam.sdk.options.Description; | |
| /** | |
| * App specific Apache Beam pipeline options. | |
| * | |
| * @author Ahmed Elhossaini | |
| */ | |
| public interface AppOptions extends DataflowPipelineOptions { | |
| @Description("PostgreSQL Host") | |
| @Default.String("localhost") | |
| String getPgHost(); | |
| void setPgHost(String value); | |
| @Description("PostgresSQL port") | |
| @Default.Integer(5432) | |
| int getPgPort(); | |
| void setPgPort(int value); | |
| @Description("PostgreSQL Username") | |
| String getPgUsername(); | |
| void setPgUsername(String value); | |
| @Description("PostgreSQL Password") | |
| String getPgPassword(); | |
| void setPgPassword(String value); | |
| @Description("PostgreSQL Database") | |
| String getPgDatabase(); | |
| void setPgDatabase(String value); | |
| @Description("BigQuery output table") | |
| String getOutputTable(); | |
| void setOutputTable(String value); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment