Class: Tem::Mr::Search::MapReduceJob::Finalizer

Inherits:
JobPart
  • Object
show all
Defined in:
lib/tem_mr_search/map_reduce_job.rb

Overview

Wrapper for the finalize SECpack.

Instance Method Summary collapse

Methods inherited from JobPart

#bind, #initialize, #migrate, #to_plain_object

Constructor Details

This class inherits a constructor from Tem::Mr::Search::MapReduceJob::JobPart

Instance Method Details

#finalize_output(output, tem) ⇒ Object

Converts a map/reduce output into the final result for the operation.



143
144
145
146
147
148
# File 'lib/tem_mr_search/map_reduce_job.rb', line 143

def finalize_output(output, tem)
  return output unless @secpack
  secpack = Tem::SecPack.new_from_array @finalize_secpack.to_array
  secpack.set_bytes :_output, output
  tem.execute secpack
end