Class: Google::Apis::DataflowV1b3::SourceSplitOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataflow_v1b3/classes.rb,
generated/google/apis/dataflow_v1b3/representations.rb,
generated/google/apis/dataflow_v1b3/representations.rb

Overview

Hints for splitting a Source into bundles (parts for parallel processing) using SourceSplitRequest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceSplitOptions

Returns a new instance of SourceSplitOptions



3591
3592
3593
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3591

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#desired_bundle_size_bytesFixnum

The source should be split into a set of bundles where the estimated size of each is approximately this many bytes. Corresponds to the JSON property desiredBundleSizeBytes

Returns:

  • (Fixnum)


3584
3585
3586
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3584

def desired_bundle_size_bytes
  @desired_bundle_size_bytes
end

#desired_shard_size_bytesFixnum

DEPRECATED in favor of desired_bundle_size_bytes. Corresponds to the JSON property desiredShardSizeBytes

Returns:

  • (Fixnum)


3589
3590
3591
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3589

def desired_shard_size_bytes
  @desired_shard_size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3596
3597
3598
3599
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3596

def update!(**args)
  @desired_bundle_size_bytes = args[:desired_bundle_size_bytes] if args.key?(:desired_bundle_size_bytes)
  @desired_shard_size_bytes = args[:desired_shard_size_bytes] if args.key?(:desired_shard_size_bytes)
end