Class: HadoopDsl::HiveLike::HiveLikeSetup
- Includes:
- HiveLikeMapRed
- Defined in:
- lib/hive_like.rb
Overview
controller
Instance Method Summary collapse
- #load_data(inputs, table) ⇒ Object
- #output_format ⇒ Object
-
#select(*args) ⇒ Object
might not need but occur error if not exists.
Methods included from HiveLikeMapRed
#pre_process, #sprit_and_marge_args
Methods inherited from BaseSetup
#from, #initialize, #paths, #to
Methods included from DslController
Methods included from DslElement
Constructor Details
This class inherits a constructor from HadoopDsl::BaseSetup
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HadoopDsl::DslElement
Instance Method Details
#load_data(inputs, table) ⇒ Object
31 32 33 34 |
# File 'lib/hive_like.rb', line 31 def load_data(inputs, table) @from = inputs @to = inputs.gsub(/#{File.basename(inputs)}$/, 'outputs') end |
#output_format ⇒ Object
36 37 38 39 |
# File 'lib/hive_like.rb', line 36 def output_format @conf.output_key_class = HadoopDsl::Text @conf.output_value_class = HadoopDsl::Text end |
#select(*args) ⇒ Object
might not need but occur error if not exists
42 |
# File 'lib/hive_like.rb', line 42 def select(*args) end |