class Google::Apis::DataflowV1b3::ApproximateSplitRequest
A suggestion by the service to the worker to dynamically split the WorkItem
.
Attributes
fraction_consumed[RW]
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` @return [Float]
fraction_of_remainder[RW]
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` @return [Float]
position[RW]
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` @return [Google::Apis::DataflowV1b3::Position]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/dataflow_v1b3/classes.rb, line 123 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/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