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

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

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ Parser

Returns a new instance of Parser.



262
263
264
265
266
# File 'lib/fluent/plugin/in_groonga.rb', line 262

def initialize(input)
  super()
  @input = input
  initialize_command_parser
end

Instance Method Details

#closeObject



276
277
278
# File 'lib/fluent/plugin/in_groonga.rb', line 276

def close
  @command_parser.finish
end

#on_body(chunk) ⇒ Object



268
269
270
# File 'lib/fluent/plugin/in_groonga.rb', line 268

def on_body(chunk)
  @command_parser << chunk
end

#on_completeObject



272
273
274
# File 'lib/fluent/plugin/in_groonga.rb', line 272

def on_complete
  @command_parser << "\n"
end