Class: Spark::Command::CombineByKey::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/spark/command/pair.rb

Overview


Direct Known Subclasses

Combine, CombineWithZero, Merge

Constant Summary

Constants inherited from Base

Base::DEFAULT_VARIABLE_OPTIONS

Instance Attribute Summary

Attributes inherited from Base

#__objects__

Instance Method Summary collapse

Methods inherited from Base

#before_run, error, #error, #execute, init_settings, #initialize, #log, #method_missing, #prepare, #prepared?, #settings, settings, #to_s, variable

Constructor Details

This class inherits a constructor from Spark::Command::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Spark::Command::Base

Instance Method Details

#lazy_run(iterator) ⇒ Object



15
16
17
# File 'lib/spark/command/pair.rb', line 15

def lazy_run(iterator, *)
  _run(iterator).lazy
end

#run(iterator) ⇒ Object



11
12
13
# File 'lib/spark/command/pair.rb', line 11

def run(iterator, *)
  _run(iterator).to_a
end