Class: RightOuterJoin

Inherits:
Join
  • Object
show all
Defined in:
lib/streaming_join/right_outer_join.rb

Instance Method Summary collapse

Methods inherited from Join

#initialize, #null_right, #output, #process_stream, #report

Constructor Details

This class inherits a constructor from Join

Instance Method Details

#null_left(key, right) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/streaming_join/right_outer_join.rb', line 4

def null_left key, right
  o = "#{key}#{@sep_out}"

  if @cols_l > 0
    o << "#{Array.new(@cols_l).join(@sep_out)}#{@sep_out}#{right}"
  else
    o = "#{key}#{@sep_out}#{right}"
  end

  block_given? ? (yield o) : (puts o)
end