Class: MapRedus::JsonOutputter

Inherits:
Outputter show all
Defined in:
lib/mapredus/outputter.rb

Class Method Summary collapse

Methods inherited from Outputter

perform

Methods inherited from QueueProcess

perform, queue

Class Method Details

.decode(result_key) ⇒ Object



24
25
26
# File 'lib/mapredus/outputter.rb', line 24

def self.decode(result_key)
  Helper.decode(FileSystem.get(result_key))
end

.encode(result_key, o) ⇒ Object



28
29
30
# File 'lib/mapredus/outputter.rb', line 28

def self.encode(result_key, o)
  FileSystem.set(result_key, Helper.encode(o))
end