class GroongaQueryLog::Command::Analyzer::JSONStreamReporter

Public Instance Methods

finish() click to toggle source
# File lib/groonga-query-log/command/analyzer/reporter/json-stream.rb, line 33
def finish
end
report_statistic(statistic) click to toggle source
# File lib/groonga-query-log/command/analyzer/reporter/json-stream.rb, line 23
def report_statistic(statistic)
  write(format_statistic(statistic))
  write("\n")
  @index += 1
end
report_summary() click to toggle source
# File lib/groonga-query-log/command/analyzer/reporter/json-stream.rb, line 36
def report_summary
  # TODO
end
start() click to toggle source
# File lib/groonga-query-log/command/analyzer/reporter/json-stream.rb, line 29
def start
  @index = 0
end

Private Instance Methods

format_statistic(statistic) click to toggle source
# File lib/groonga-query-log/command/analyzer/reporter/json-stream.rb, line 41
def format_statistic(statistic)
  JSON.generate(statistic.to_hash)
end