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 66 def initialize(entries) @entries = entries end
# File lib/fluent/event.rb, line 70 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 83 def each(&block) @entries.each(&block) nil end
# File lib/fluent/event.rb, line 79 def empty? @entries.empty? end
# File lib/fluent/event.rb, line 75 def repeatable? true end