Java Code Examples for org.apache.beam.sdk.options.Default#Boolean

The following examples show how to use org.apache.beam.sdk.options.Default#Boolean . 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: DirectOptions.java    From beam with Apache License 2.0 5 votes vote down vote up
@Default.Boolean(true)
@Description(
    "If the pipeline should block awaiting completion of the pipeline. If set to true, "
        + "a call to Pipeline#run() will block until all PTransforms are complete. Otherwise, "
        + "the Pipeline will execute asynchronously. If set to false, use "
        + "PipelineResult#waitUntilFinish() to block until the Pipeline is complete.")
boolean isBlockOnRun();
 
Example 2
Source File: FlinkPipelineOptions.java    From beam with Apache License 2.0 5 votes vote down vote up
@Description(
    "Flag indicating whether auto-balance sharding for WriteFiles transform should be enabled. "
        + "This might prove useful in streaming use-case, where pipeline needs to write quite many events "
        + "into files, typically divided into N shards. Default behavior on Flink would be, that some workers "
        + "will receive more shards to take care of than others. This cause workers to go out of balance in "
        + "terms of processing backlog and memory usage. Enabling this feature will make shards to be spread "
        + "evenly among available workers in improve throughput and memory usage stability.")
@Default.Boolean(false)
Boolean isAutoBalanceWriteFilesShardingEnabled();
 
Example 3
Source File: KryoOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@JsonIgnore
@Description("Set to false to disable reference tracking")
@Default.Boolean(true)
boolean getKryoReferences();
 
Example 4
Source File: JoinNonVariantSegmentsWithVariants.java    From dataflow-java with Apache License 2.0 4 votes vote down vote up
@Description("If querying a dataset with non-variant segments (such as Complete Genomics data "
    + "or data in Genome VCF (gVCF) format), specify this flag so that the pipeline correctly "
    + "takes into account non-variant segment records that overlap variants within the dataset.")
@Default.Boolean(false)
boolean getHasNonVariantSegments();
 
Example 5
Source File: PubSubToBigQuery.java    From DataflowTemplates with Apache License 2.0 4 votes vote down vote up
@Description(
    "This determines whether the template reads from " + "a pub/sub subscription or a topic")
@Default.Boolean(false)
Boolean getUseSubscription();
 
Example 6
Source File: SparkCommonPipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("Enable/disable sending aggregator values to Spark's metric sinks")
@Default.Boolean(true)
Boolean getEnableSparkMetricSinks();
 
Example 7
Source File: TestSparkPipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("A special flag that forces streaming in tests.")
@Default.Boolean(false)
boolean isForceStreaming();
 
Example 8
Source File: PubSubCdcToBigQuery.java    From DataflowTemplates with Apache License 2.0 4 votes vote down vote up
@Description(
    "This determines if new columns and tables should be automatically created in BigQuery")
@Default.Boolean(true)
Boolean getAutoMapTables();
 
Example 9
Source File: FlinkPipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
/** Enables or disables externalized checkpoints. */
@Description(
    "Enables or disables externalized checkpoints. "
        + "Works in conjunction with CheckpointingInterval")
@Default.Boolean(false)
Boolean isExternalizedCheckpointsEnabled();
 
Example 10
Source File: PubSubToMongoDB.java    From DataflowTemplates with Apache License 2.0 4 votes vote down vote up
@Description("Enable ordered bulk insertions. Default: true")
@Default.Boolean(true)
Boolean getWithOrdered();
 
Example 11
Source File: SinkOptions.java    From gcp-ingestion with Mozilla Public License 2.0 4 votes vote down vote up
@Hidden
@Description("If true, include a 'stack_trace' attribute in error output messages;"
    + " this should always be enabled except for specific testing scenarios where we want to "
    + " validate error output without worrying about unstable stack traces")
@Default.Boolean(true)
Boolean getIncludeStackTrace();
 
Example 12
Source File: IndexerPipelineOptions.java    From dataflow-opinion-analysis with Apache License 2.0 4 votes vote down vote up
@Description("Source RecordFile: Should records be processed as CSV")
@Default.Boolean(false)
   Boolean getReadAsCSV();
 
Example 13
Source File: FlinkPipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("Disable Beam metrics in Flink Runner")
@Default.Boolean(false)
Boolean getDisableMetrics();
 
Example 14
Source File: TextImportPipeline.java    From DataflowTemplates with Apache License 2.0 4 votes vote down vote up
@Description("If true, the lines has trailing delimiters. The default value is true.")
@Default.Boolean(true)
ValueProvider<Boolean> getTrailingDelimiter();
 
Example 15
Source File: DecoderOptions.java    From gcp-ingestion with Mozilla Public License 2.0 4 votes vote down vote up
@Description("If set to true, assume that all private keys are encrypted with the associated"
    + " KMS resourceId. Otherwise ignore KMS and assume all private keys are stored in plaintext."
    + " This may be used for debugging.")
@Default.Boolean(true)
ValueProvider<Boolean> getAetKmsEnabled();
 
Example 16
Source File: FlinkPipelineOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Description("Sets the behavior of externalized checkpoints on cancellation.")
@Default.Boolean(false)
Boolean getRetainExternalizedCheckpointsOnCancellation();
 
Example 17
Source File: DirectOptions.java    From beam with Apache License 2.0 4 votes vote down vote up
@Default.Boolean(true)
@Description(
    "Controls whether the DirectRunner should ensure that all of the elements of every "
        + "PCollection can be encoded and decoded by that PCollection's Coder.")
boolean isEnforceEncodability();
 
Example 18
Source File: DecoderOptions.java    From gcp-ingestion with Mozilla Public License 2.0 4 votes vote down vote up
@Description("If set to true, assume that all private keys are encrypted with the associated"
    + " KMS resourceId. Otherwise ignore KMS and assume all private keys are stored in plaintext."
    + " This may be used for debugging.")
@Default.Boolean(true)
ValueProvider<Boolean> getPioneerKmsEnabled();
 
Example 19
Source File: IndexerPipelineOptions.java    From dataflow-opinion-analysis with Apache License 2.0 4 votes vote down vote up
@Description("Text indexing option: Index as Short text or as an Article. Default: false")
@Default.Boolean(false)
Boolean getIndexAsShorttext();
 
Example 20
Source File: IdentifyPrivateVariants.java    From dataflow-java with Apache License 2.0 4 votes vote down vote up
@Description("Whether variants with no callsets should also be identified.  Defaults to false.")
@Default.Boolean(false)
boolean getIdentifyVariantsWithoutCalls();