Class: GroongaQueryLog::Command::Analyzer::Streamer

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

Instance Method Summary collapse

Constructor Details

#initialize(reporter) ⇒ Streamer

Returns a new instance of Streamer.



22
23
24
# File 'lib/groonga-query-log/command/analyzer/streamer.rb', line 22

def initialize(reporter)
  @reporter = reporter
end

Instance Method Details

#<<(statistic) ⇒ Object



30
31
32
# File 'lib/groonga-query-log/command/analyzer/streamer.rb', line 30

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

#finishObject



34
35
36
# File 'lib/groonga-query-log/command/analyzer/streamer.rb', line 34

def finish
  @reporter.finish
end

#startObject



26
27
28
# File 'lib/groonga-query-log/command/analyzer/streamer.rb', line 26

def start
  @reporter.start
end