Class: Fluent::GroongaInput::GQTPInput::Parser
- Inherits:
-
GQTP::Parser
- Object
- GQTP::Parser
- Fluent::GroongaInput::GQTPInput::Parser
- Defined in:
- lib/fluent/plugin/in_groonga.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(input) ⇒ Parser
constructor
A new instance of Parser.
- #on_body(chunk) ⇒ Object
- #on_complete ⇒ Object
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
#close ⇒ Object
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_complete ⇒ Object
461 462 463 |
# File 'lib/fluent/plugin/in_groonga.rb', line 461 def on_complete @command_parser << "\n" end |