Class: HadoopDsl::HiveLike::HiveLikeSetup

Inherits:
BaseSetup
  • Object
show all
Includes:
HiveLikeMapRed
Defined in:
lib/hive_like.rb

Overview

controller

Instance Method Summary collapse

Methods included from HiveLikeMapRed

#pre_process, #sprit_and_marge_args

Methods inherited from BaseSetup

#from, #initialize, #paths, #to

Methods included from DslController

#pre_process, #run

Methods included from DslElement

#method_missing

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_formatObject



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