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.
253 254 255 256 257 |
# File 'lib/fluent/plugin/in_groonga.rb', line 253 def initialize(input) super() @input = input initialize_command_parser end |
Instance Method Details
#close ⇒ Object
267 268 269 |
# File 'lib/fluent/plugin/in_groonga.rb', line 267 def close @command_parser.finish end |
#on_body(chunk) ⇒ Object
259 260 261 |
# File 'lib/fluent/plugin/in_groonga.rb', line 259 def on_body(chunk) @command_parser << chunk end |
#on_complete ⇒ Object
263 264 265 |
# File 'lib/fluent/plugin/in_groonga.rb', line 263 def on_complete @command_parser << "\n" end |