Class: Google::Apis::DataflowV1b3::PartialGroupByKeyInstruction

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 partial group-by-key. One input and one output.

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

Returns a new instance of PartialGroupByKeyInstruction



2075
2076
2077
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2075

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



2073
2074
2075
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2073

def input
  @input
end

#input_element_codecHash<String,Object>

The codec to use for interpreting an element in the input PTable. Corresponds to the JSON property inputElementCodec

Returns:

  • (Hash<String,Object>)


2050
2051
2052
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2050

def input_element_codec
  @input_element_codec
end

#original_combine_values_input_store_nameString

If this instruction includes a combining function this is the name of the intermediate store between the GBK and the CombineValues. Corresponds to the JSON property originalCombineValuesInputStoreName

Returns:

  • (String)


2056
2057
2058
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2056

def original_combine_values_input_store_name
  @original_combine_values_input_store_name
end

#original_combine_values_step_nameString

If this instruction includes a combining function, this is the name of the CombineValues instruction lifted into this instruction. Corresponds to the JSON property originalCombineValuesStepName

Returns:

  • (String)


2062
2063
2064
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2062

def original_combine_values_step_name
  @original_combine_values_step_name
end

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

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



2067
2068
2069
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2067

def side_inputs
  @side_inputs
end

#value_combining_fnHash<String,Object>

The value combining function to invoke. Corresponds to the JSON property valueCombiningFn

Returns:

  • (Hash<String,Object>)


2045
2046
2047
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2045

def value_combining_fn
  @value_combining_fn
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2080
2081
2082
2083
2084
2085
2086
2087
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2080

def update!(**args)
  @value_combining_fn = args[:value_combining_fn] if args.key?(:value_combining_fn)
  @input_element_codec = args[:input_element_codec] if args.key?(:input_element_codec)
  @original_combine_values_input_store_name = args[:original_combine_values_input_store_name] if args.key?(:original_combine_values_input_store_name)
  @original_combine_values_step_name = args[:original_combine_values_step_name] if args.key?(:original_combine_values_step_name)
  @side_inputs = args[:side_inputs] if args.key?(:side_inputs)
  @input = args[:input] if args.key?(:input)
end