class Fluent::MeCabOutput

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_mecab.rb, line 9
def initialize
  super
  require 'fluent/plugin/mecab'
end

Public Instance Methods

configure(config) click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_mecab.rb, line 14
def configure(config)
  super
  @mecab = MeCab.new(@parse_type, @key.split(',').map{|string| string.strip})
end
emit(tag, es, chain) click to toggle source
# File lib/fluent/plugin/out_mecab.rb, line 27
def emit(tag, es, chain)
  es.each do |time, record|
    parse(record).each do |mecab|
      Engine.emit(@tag, time, mecab)
    end
  end
end
parse(record) click to toggle source
# File lib/fluent/plugin/out_mecab.rb, line 35
def parse(record)
  @mecab.parse(record)
end
shutdown() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_mecab.rb, line 23
def shutdown
  super
end
start() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_mecab.rb, line 19
def start
  super
end