Class: Google::Apis::DataflowV1b3::ApproximateSplitRequest
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::ApproximateSplitRequest
- 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
A suggestion by the service to the worker to dynamically split the WorkItem.
Instance Attribute Summary collapse
-
#fraction_consumed ⇒ Float
A fraction at which to split the work item, from 0.0 (beginning of the input) to 1.0 (end of the input).
-
#fraction_of_remainder ⇒ Float
The fraction of the remainder of work to split the work item at, from 0.0 ( split at the current position) to 1.0 (end of the input).
-
#position ⇒ Google::Apis::DataflowV1b3::Position
Position defines a position within a collection of data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApproximateSplitRequest
constructor
A new instance of ApproximateSplitRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApproximateSplitRequest
Returns a new instance of ApproximateSplitRequest.
123 124 125 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 123 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fraction_consumed ⇒ Float
A fraction at which to split the work item, from 0.0 (beginning of the input)
to 1.0 (end of the input).
Corresponds to the JSON property fractionConsumed
108 109 110 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 108 def fraction_consumed @fraction_consumed end |
#fraction_of_remainder ⇒ Float
The fraction of the remainder of work to split the work item at, from 0.0 (
split at the current position) to 1.0 (end of the input).
Corresponds to the JSON property fractionOfRemainder
114 115 116 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 114 def fraction_of_remainder @fraction_of_remainder end |
#position ⇒ Google::Apis::DataflowV1b3::Position
Position defines a position within a collection of data. The value can be
either the end position, a key (used with ordered collections), a byte offset,
or a record index.
Corresponds to the JSON property position
121 122 123 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 121 def position @position end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
128 129 130 131 132 |
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 128 def update!(**args) @fraction_consumed = args[:fraction_consumed] if args.key?(:fraction_consumed) @fraction_of_remainder = args[:fraction_of_remainder] if args.key?(:fraction_of_remainder) @position = args[:position] if args.key?(:position) end |