org.apache.beam.sdk.options.Default Java Examples

The following examples show how to use org.apache.beam.sdk.options.Default. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DataflowPipelineDebugOptions.java    From beam with Apache License 2.0 5 votes vote down vote up
/**
 * The class responsible for staging resources to be accessible by workers during job execution.
 * If stager has not been set explicitly, an instance of this class will be created and used as
 * the resource stager.
 */
@Description(
    "The class of the stager that should be created and used to stage resources. "
        + "If stager has not been set explicitly, an instance of the this class will be created "
        + "and used as the resource stager.")
@Default.Class(GcsStager.class)
Class<? extends Stager> getStagerClass();
 
Example #2
Source File: CsvConverters.java    From DataflowTemplates with Apache License 2.0 5 votes vote down vote up
@Description(
    "Csv format according to Apache Commons CSV format. Default is: Apache Commons CSV"
        + " default\n"
        + "https://static.javadoc.io/org.apache.commons/commons-csv/1.7/org/apache/commons/csv/CSVFormat.html#DEFAULT\n"
        + "Must match format names exactly found at: "
        + "https://static.javadoc.io/org.apache.commons/commons-csv/1.7/org/apache/commons/csv/CSVFormat.Predefined.html")
@Default.String("Default")
String getCsvFormat();
 
Example #3
Source File: CalculateCoverage.java    From dataflow-java with Apache License 2.0 5 votes vote down vote up
@Description("The ID of the Google Genomics Dataset that the pipeline will get its input reads"
    + " from.  Default (empty) means to use ReadGroupSetIds instead.  This or ReadGroupSetIds"
    + " must be set.  InputDatasetId overrides ReadGroupSetIds (if this field is set, "
    + "ReadGroupSetIds will be ignored).  All of the referenceSetIds for all ReadGroupSets in"
    + " this Dataset must be the same for the purposes of setting the referenceSetId"
    + " of the output AnnotationSet."
    + " Use one of --bamInput, --inputDatasetId, or --readGroupSetIds.")
@Default.String("")
String getInputDatasetId();
 
Example #4
Source File: PubsubToText.java    From DataflowTemplates with Apache License 2.0 5 votes vote down vote up
@Description("The window duration in which data will be written. Defaults to 5m. "
    + "Allowed formats are: "
    + "Ns (for seconds, example: 5s), "
    + "Nm (for minutes, example: 12m), "
    + "Nh (for hours, example: 2h).")
@Default.String("5m")
String getWindowDuration();
 
Example #5
Source File: AwsOptions.java    From beam with Apache License 2.0 5 votes vote down vote up
/**
 * The credential instance that should be used to authenticate against AWS services. The option
 * value must contain a "@type" field and an AWS Credentials Provider class as the field value.
 * Refer to {@link DefaultAWSCredentialsProviderChain} Javadoc for usage help.
 *
 * <p>For example, to specify the AWS key ID and secret, specify the following: <code>
 * {"@type" : "AWSStaticCredentialsProvider", "awsAccessKeyId" : "key_id_value",
 * "awsSecretKey" : "secret_value"}
 * </code>
 */
@Description(
    "The credential instance that should be used to authenticate "
        + "against AWS services. The option value must contain \"@type\" field "
        + "and an AWS Credentials Provider class name as the field value. "
        + "Refer to DefaultAWSCredentialsProviderChain Javadoc for usage help. "
        + "For example, to specify the AWS key ID and secret, specify the following: "
        + "{\"@type\": \"AWSStaticCredentialsProvider\", "
        + "\"awsAccessKeyId\":\"<key_id>\", \"awsSecretKey\":\"<secret_key>\"}")
@Default.InstanceFactory(AwsUserCredentialsFactory.class)
AWSCredentialsProvider getAwsCredentialsProvider();
 
Example #6
Source File: ImportOptions.java    From feast with Apache License 2.0 5 votes vote down vote up
@Description(
    "Fixed window size in seconds (default 60) to apply before aggregating the numerical value of "
        + "features and exporting the aggregated values as metrics. Refer to "
        + "feast/ingestion/transform/metrics/WriteFeatureValueMetricsDoFn.java"
        + "for the metric nameas and types used.")
@Default.Integer(60)
int getWindowSizeInSecForFeatureValueMetric();
 
Example #7
Source File: FlinkPipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description(
    "Flag indicating whether result of GBK needs to be re-iterable. Re-iterable result implies that all values for a single key must fit in memory as we currently do not support spilling to disk.")
@Default.Boolean(false)
Boolean getReIterableGroupByKeyResult();
 
Example #8
Source File: SparkPipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("Max records per micro-batch. For streaming sources only.")
@Default.Long(-1)
Long getMaxRecordsPerBatch();
 
Example #9
Source File: S3Options.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description(
    "Size of S3 upload chunks; max upload object size is this value multiplied by 10000;"
        + "default is 64MB, or 5MB in memory-constrained environments. Must be at least 5MB.")
@Default.InstanceFactory(S3UploadBufferSizeBytesFactory.class)
Integer getS3UploadBufferSizeBytes();
 
Example #10
Source File: MetricsOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("The beam sink class to which the metrics will be pushed")
@Default.InstanceFactory(NoOpMetricsSink.class)
Class<? extends MetricsSink> getMetricsSink();
 
Example #11
Source File: SnowflakePipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("Database name to connect to. Optional.")
@Default.String("")
String getDatabase();
 
Example #12
Source File: SamzaPipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("The config for state to be durable")
@Default.Boolean(false)
Boolean getStateDurable();
 
Example #13
Source File: TextImportPipeline.java    From DataflowTemplates with Apache License 2.0 4 votes vote down vote up
@Description("Column delimiter of the data files. The default value is comma.")
@Default.Character(',')
ValueProvider<Character> getColumnDelimiter();
 
Example #14
Source File: LeaderBoard.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("Numeric value of allowed data lateness, in minutes")
@Default.Integer(120)
Integer getAllowedLateness();
 
Example #15
Source File: BigQueryToTFRecord.java    From DataflowTemplates with Apache License 2.0 4 votes vote down vote up
@Description("The output suffix for TFRecord Files")
@Default.String(".tfrecord")
ValueProvider<String> getOutputSuffix();
 
Example #16
Source File: KafkaCSVTableIT.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("Kafka topic")
@Validation.Required
@Default.String("test")
String getKafkaTopic();
 
Example #17
Source File: PipelineResourcesOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
/**
 * Instance of a pipeline resources detection algorithm. If not set explicitly, a default
 * implementation will be used.
 */
@JsonIgnore
@Description(
    "Instance of a pipeline resources detection algorithm. If not set explicitly, a default implementation will be used")
@Default.InstanceFactory(PipelineResourcesDetectorFactory.class)
PipelineResourcesDetector getPipelineResourcesDetector();
 
Example #18
Source File: ExportPipeline.java    From DataflowTemplates with Apache License 2.0 4 votes vote down vote up
@Description("Cloud Spanner API endpoint")
@Default.String("https://batch-spanner.googleapis.com")
ValueProvider<String> getSpannerHost();
 
Example #19
Source File: HelloWorldRead.java    From java-docs-samples with Apache License 2.0 4 votes vote down vote up
@Description("The Bigtable table ID in the instance.")
@Default.String("bigtable-table")
String getBigtableTableId();
 
Example #20
Source File: PubsubToAvro.java    From DataflowTemplates with Apache License 2.0 4 votes vote down vote up
@Description("The filename prefix of the files to write to.")
@Default.String("output")
ValueProvider<String> getOutputFilenamePrefix();
 
Example #21
Source File: FlinkPipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description(
    "Sets the number of times that failed tasks are re-executed. "
        + "A value of zero effectively disables fault tolerance. A value of -1 indicates "
        + "that the system default value (as defined in the configuration) should be used.")
@Default.Integer(-1)
Integer getNumberOfExecutionRetries();
 
Example #22
Source File: BigQueryNestedRecordsIT.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("Query for the pipeline input.  Must return exactly one result")
@Default.String(RECORD_QUERY)
String getInput();
 
Example #23
Source File: FilterExamples.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("Numeric value of month to filter on")
@Default.Integer(MONTH_TO_FILTER)
Integer getMonthFilter();
 
Example #24
Source File: SubProcessPipelineOptions.java    From deployment-examples with MIT License 4 votes vote down vote up
@Description("The maximum time to wait for the sub-process to complete")
@Default.Integer(3600)
Integer getWaitTime();
 
Example #25
Source File: IdentityByState.java    From dataflow-java with Apache License 2.0 4 votes vote down vote up
@Description("The class that determines the strategy for calculating the similarity of alleles.")
@Default.Class(SharedMinorAllelesCalculatorFactory.class)
Class<? extends CallSimilarityCalculatorFactory> getCallSimilarityCalculatorFactory();
 
Example #26
Source File: LeaderBoard.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("Numeric value of fixed window duration for team analysis, in minutes")
@Default.Integer(60)
Integer getTeamWindowDuration();
 
Example #27
Source File: HourlyTeamScore.java    From deployment-examples with MIT License 4 votes vote down vote up
@Description(
    "String representation of the first minute after which to generate results,"
        + "in the format: yyyy-MM-dd-HH-mm . This time should be in PST."
        + "Any input data timestamped prior to that minute won't be included in the sums.")
@Default.String("1970-01-01-00-00")
String getStartMin();
 
Example #28
Source File: TestPortablePipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("String containing comma separated arguments for the JobServer.")
@Default.InstanceFactory(DefaultJobServerConfigFactory.class)
String[] getJobServerConfig();
 
Example #29
Source File: GameStats.java    From deployment-examples with MIT License 4 votes vote down vote up
@Description("Prefix used for the BigQuery table names")
@Default.String("game_stats")
String getGameStatsTablePrefix();
 
Example #30
Source File: SamzaPipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("The maximum number of elements in a bundle.")
@Default.Long(1)
long getMaxBundleSize();