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.



451
452
453
454
455
# File 'lib/fluent/plugin/in_groonga.rb', line 451

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

Instance Method Details

#closeObject



465
466
467
# File 'lib/fluent/plugin/in_groonga.rb', line 465

def close
  @command_parser.finish
end

#on_body(chunk) ⇒ Object



457
458
459
# File 'lib/fluent/plugin/in_groonga.rb', line 457

def on_body(chunk)
  @command_parser << chunk
end

#on_completeObject



461
462
463
# File 'lib/fluent/plugin/in_groonga.rb', line 461

def on_complete
  @command_parser << "\n"
end