Class: Google::Apis::DataflowV1b3::MapTask

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

MapTask consists of an ordered set of instructions, each of which describes one particular low-level operation for the worker to perform in order to accomplish the MapTask's WorkItem. Each instruction must appear in the list before any instructions which depends on its output.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MapTask

Returns a new instance of MapTask.



2840
2841
2842
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2840

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

Instance Attribute Details

#counter_prefixString

Counter prefix that can be used to prefix counters. Not currently used in Dataflow. Corresponds to the JSON property counterPrefix

Returns:

  • (String)


2822
2823
2824
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2822

def counter_prefix
  @counter_prefix
end

#instructionsArray<Google::Apis::DataflowV1b3::ParallelInstruction>

The instructions in the MapTask. Corresponds to the JSON property instructions



2827
2828
2829
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2827

def instructions
  @instructions
end

#stage_nameString

System-defined name of the stage containing this MapTask. Unique across the workflow. Corresponds to the JSON property stageName

Returns:

  • (String)


2833
2834
2835
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2833

def stage_name
  @stage_name
end

#system_nameString

System-defined name of this MapTask. Unique across the workflow. Corresponds to the JSON property systemName

Returns:

  • (String)


2838
2839
2840
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2838

def system_name
  @system_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2845
2846
2847
2848
2849
2850
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 2845

def update!(**args)
  @counter_prefix = args[:counter_prefix] if args.key?(:counter_prefix)
  @instructions = args[:instructions] if args.key?(:instructions)
  @stage_name = args[:stage_name] if args.key?(:stage_name)
  @system_name = args[:system_name] if args.key?(:system_name)
end