EventStream from entries: Array of [time, record]
Use this class for many events data with a tag and its representation is [ [time, record], [time, record], .. ]
# File lib/fluent/event.rb, line 64 def initialize(entries) @entries = entries end
# File lib/fluent/event.rb, line 68 def dup entries = @entries.map { |entry| entry.dup } # @entries.map(:dup) doesn't work by ArgumentError ArrayEventStream.new(entries) end
# File lib/fluent/event.rb, line 81 def each(&block) @entries.each(&block) nil end
# File lib/fluent/event.rb, line 77 def empty? @entries.empty? end
# File lib/fluent/event.rb, line 73 def repeatable? true end