public static interface WordCount.WordCountOptions extends PipelineOptions
WordCount.
Concept #4: Defining your own configuration options. Here, you can add your own arguments to be processed by the command-line parser, and specify default values for them. You can then access the options values in your pipeline code.
Inherits standard configuration options.
| Modifier and Type | Interface and Description |
|---|---|
static class |
WordCount.WordCountOptions.OutputFactory
Returns "gs://${YOUR_TEMP_DIRECTORY}/counts.txt" as the default destination.
|
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory| Modifier and Type | Method and Description |
|---|---|
String |
getInputFile() |
String |
getOutput() |
void |
setInputFile(String value) |
void |
setOutput(String value) |
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocationpopulateDisplayData@Default.String(value="gs://apache-beam-samples/shakespeare/kinglear.txt") String getInputFile()
void setInputFile(String value)
@Default.InstanceFactory(value=WordCount.WordCountOptions.OutputFactory.class) String getOutput()
void setOutput(String value)