Class: Google::Apis::DataflowV1b3::ParDoInstruction

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

An instruction that does a ParDo operation. Takes one main input and zero or more side inputs, and produces zero or more outputs. Runs user code.

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) ⇒ ParDoInstruction

Returns a new instance of ParDoInstruction.


2802
2803
2804
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2802

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

Instance Attribute Details

#inputGoogle::Apis::DataflowV1b3::InstructionInput

An input of an instruction, as a reference to an output of a producer instruction. Corresponds to the JSON property input


2780
2781
2782
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2780

def input
  @input
end

#multi_output_infosArray<Google::Apis::DataflowV1b3::MultiOutputInfo>

Information about each of the outputs, if user_fn is a MultiDoFn. Corresponds to the JSON property multiOutputInfos


2800
2801
2802
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2800

def multi_output_infos
  @multi_output_infos
end

#num_outputsFixnum

The number of outputs. Corresponds to the JSON property numOutputs

Returns:

  • (Fixnum)

2795
2796
2797
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2795

def num_outputs
  @num_outputs
end

#side_inputsArray<Google::Apis::DataflowV1b3::SideInputInfo>

Zero or more side inputs. Corresponds to the JSON property sideInputs


2785
2786
2787
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2785

def side_inputs
  @side_inputs
end

#user_fnHash<String,Object>

The user function to invoke. Corresponds to the JSON property userFn

Returns:

  • (Hash<String,Object>)

2790
2791
2792
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2790

def user_fn
  @user_fn
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2807
2808
2809
2810
2811
2812
2813
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2807

def update!(**args)
  @input = args[:input] if args.key?(:input)
  @side_inputs = args[:side_inputs] if args.key?(:side_inputs)
  @user_fn = args[:user_fn] if args.key?(:user_fn)
  @num_outputs = args[:num_outputs] if args.key?(:num_outputs)
  @multi_output_infos = args[:multi_output_infos] if args.key?(:multi_output_infos)
end