Sha256: 7a2d9197c1feebca1ab5991451406c5c09e55515e9dce6ad4432db27055e5c36
Contents?: true
Size: 391 Bytes
Versions: 1
Compression:
Stored size: 391 Bytes
Contents
class MapReduce<%= name.capitalize %> include SkynetDebugger def self.run job = Skynet::Job.new( :mappers => 2, #change to whatever is a good number :reducers => 1, #same :map_reduce_class => self, :map_data => [] #acquire your data! ) job.run end def self.map(profiles) #map code end def self.reduce(pairs) #reduce code end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gigantron-0.1.0 | gigantron_generators/mapreduce_task/templates/mapreduce/mr_task.rb |