Module: Wukong::Hadoop::InputsAndOutputs

Included in:
Driver
Defined in:
lib/wukong-hadoop/driver/inputs_and_outputs.rb

Overview

Provides methods for determining input and output paths. Written as a separate module to allow easy overriding from other plugins.

Instance Method Summary collapse

Instance Method Details

#input_pathsString

The input paths to read from.

Returns:

  • (String)


12
13
14
# File 'lib/wukong-hadoop/driver/inputs_and_outputs.rb', line 12

def input_paths
  (settings[:input] || [])
end

#output_pathString

The output path to write to.

Returns:

  • (String)


19
20
21
# File 'lib/wukong-hadoop/driver/inputs_and_outputs.rb', line 19

def output_path
  settings[:output]
end