Class: Fluent::GroongaInput::GQTPInput::Parser

Inherits:
GQTP::Parser
  • Object
show all
Defined in:
lib/fluent/plugin/in_groonga.rb,
lib/fluent/plugin/in_groonga.rb

Instance Method Summary (collapse)

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