Class: Groonga::QueryLog::Analyzer::Streamer

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga/query-log/analyzer/streamer.rb

Instance Method Summary collapse

Constructor Details

#initialize(reporter) ⇒ Streamer

Returns a new instance of Streamer.



24
25
26
# File 'lib/groonga/query-log/analyzer/streamer.rb', line 24

def initialize(reporter)
  @reporter = reporter
end

Instance Method Details

#<<(statistic) ⇒ Object



32
33
34
# File 'lib/groonga/query-log/analyzer/streamer.rb', line 32

def <<(statistic)
  @reporter.report_statistic(statistic)
end

#finishObject



36
37
38
# File 'lib/groonga/query-log/analyzer/streamer.rb', line 36

def finish
  @reporter.finish
end

#startObject



28
29
30
# File 'lib/groonga/query-log/analyzer/streamer.rb', line 28

def start
  @reporter.start
end