Class: Fluent::GroongaInput::GQTPInput::Parser

Inherits:
GQTP::Parser
  • Object
show all
Defined in:
lib/fluent/plugin/in_groonga.rb

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ Parser

Returns a new instance of Parser.



285
286
287
288
289
# File 'lib/fluent/plugin/in_groonga.rb', line 285

def initialize(input)
  super()
  @input = input
  initialize_command_parser
end

Instance Method Details

#closeObject



299
300
301
# File 'lib/fluent/plugin/in_groonga.rb', line 299

def close
  @command_parser.finish
end

#on_body(chunk) ⇒ Object



291
292
293
# File 'lib/fluent/plugin/in_groonga.rb', line 291

def on_body(chunk)
  @command_parser << chunk
end

#on_completeObject



295
296
297
# File 'lib/fluent/plugin/in_groonga.rb', line 295

def on_complete
  @command_parser << "\n"
end