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.
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
#close ⇒ Object
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_complete ⇒ Object
295 296 297 |
# File 'lib/fluent/plugin/in_groonga.rb', line 295 def on_complete @command_parser << "\n" end |