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



38
39
40
41
42
43
44
45
46
# File 'lib/fluent/output.rb', line 38

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