Class: Fluent::GroongaInput::GQTPInput::Parser
- Inherits:
-
GQTP::Parser
- Object
- GQTP::Parser
- Fluent::GroongaInput::GQTPInput::Parser
- Defined in:
- lib/fluent/plugin/in_groonga.rb,
lib/fluent/plugin/in_groonga.rb
Instance Method Summary (collapse)
- - (Object) close
-
- (Parser) initialize(input)
constructor
A new instance of Parser.
- - (Object) on_body(chunk)
- - (Object) on_complete
Constructor Details
- (Parser) initialize(input)
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
- (Object) close
267 268 269 |
# File 'lib/fluent/plugin/in_groonga.rb', line 267 def close @command_parser.finish end |
- (Object) on_body(chunk)
259 260 261 |
# File 'lib/fluent/plugin/in_groonga.rb', line 259 def on_body(chunk) @command_parser << chunk end |
- (Object) on_complete
263 264 265 |
# File 'lib/fluent/plugin/in_groonga.rb', line 263 def on_complete @command_parser << "\n" end |