Class: Contrek::Concurrent::VerticalMerger

Inherits:
Merger show all
Defined in:
lib/contrek/finder/concurrent/vertical_merger.rb

Instance Attribute Summary

Attributes included from Poolable

#number_of_threads

Attributes inherited from Finder

#maximum_width, #options

Instance Method Summary collapse

Methods inherited from Merger

#initialize

Methods included from Poolable

#enqueue!, #initialize, #wait!

Methods inherited from Finder

#initialize

Constructor Details

This class inherits a constructor from Contrek::Concurrent::Merger

Instance Method Details

#add_tile(result) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/contrek/finder/concurrent/vertical_merger.rb', line 4

def add_tile(result)
  transpose(result)
  if @tiles.size > 0
    translate(result, @current_x)
  end
  adjust(result)
  super
end

#process_infoObject



13
14
15
# File 'lib/contrek/finder/concurrent/vertical_merger.rb', line 13

def process_info
  transpose(super)
end