Class: Google::Apis::DataflowV1b3::DynamicSourceSplit

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

Overview

When a task splits using WorkItemStatus.dynamic_source_split, this message describes the two parts of the split relative to the description of the current task's input.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DynamicSourceSplit

Returns a new instance of DynamicSourceSplit.



1437
1438
1439
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1437

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

Instance Attribute Details

#primaryGoogle::Apis::DataflowV1b3::DerivedSource

Specification of one of the bundles produced as a result of splitting a Source (e.g. when executing a SourceSplitRequest, or when splitting an active task using WorkItemStatus.dynamic_source_split), relative to the source being split. Corresponds to the JSON property primary



1428
1429
1430
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1428

def primary
  @primary
end

#residualGoogle::Apis::DataflowV1b3::DerivedSource

Specification of one of the bundles produced as a result of splitting a Source (e.g. when executing a SourceSplitRequest, or when splitting an active task using WorkItemStatus.dynamic_source_split), relative to the source being split. Corresponds to the JSON property residual



1435
1436
1437
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1435

def residual
  @residual
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1442
1443
1444
1445
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1442

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