-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSnowflakeWordCountOptions.java
More file actions
31 lines (23 loc) · 1019 Bytes
/
SnowflakeWordCountOptions.java
File metadata and controls
31 lines (23 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package batching;
import org.apache.beam.sdk.io.snowflake.SnowflakePipelineOptions;
import org.apache.beam.sdk.options.Default;
import org.apache.beam.sdk.options.Description;
import org.apache.beam.sdk.options.Validation.Required;
import org.apache.beam.sdk.options.ValueProvider;
/**
* Supported PipelineOptions used in provided examples.
*/
public interface SnowflakeWordCountOptions extends SnowflakePipelineOptions {
@Description("Path of the file to read from")
@Default.String("gs://apache-beam-samples/shakespeare/kinglear.txt")
String getInputFile();
void setInputFile(String value);
@Description("Path of the file to write to")
@Required
String getOutput();
void setOutput(String value);
@Description(
"KMS Encryption Key should be in the format projects/{gcp_project}/locations/{key_region}/keyRings/{key_ring}/cryptoKeys/{kms_key_name}")
ValueProvider<String> getKMSEncryptionKey();
void setKMSEncryptionKey(ValueProvider<String> keyName);
}