Class: Fluent::CopyOutputChain

Inherits:
OutputChain show all
Defined in:
lib/fluent/output.rb

Instance Method Summary collapse

Methods inherited from OutputChain

#initialize

Constructor Details

This class inherits a constructor from Fluent::OutputChain

Instance Method Details

#nextObject



48
49
50
51
52
53
54
55
56
# File 'lib/fluent/output.rb', line 48

def next
  if @array.length <= @offset
    return @chain.next
  end
  @offset += 1
  es = @array.length > @offset ? @es.dup : @es
  result = @array[@offset-1].emit(@tag, es, self)
  result
end