Class: FluentExt::TextParser::ValuesParser

Inherits:
GenericParser show all
Defined in:
lib/fluent/plugin/fixed_parser.rb

Direct Known Subclasses

CSVParser, TSVParser

Instance Attribute Summary

Attributes inherited from GenericParser

#log

Instance Method Summary collapse

Methods inherited from GenericParser

#initialize, #parse_time

Constructor Details

This class inherits a constructor from FluentExt::TextParser::GenericParser

Instance Method Details

#configure(conf) ⇒ Object



115
116
117
118
# File 'lib/fluent/plugin/fixed_parser.rb', line 115

def configure(conf)
  super
  @keys = @keys.split(",")
end

#values_map(values) ⇒ Object



120
121
122
# File 'lib/fluent/plugin/fixed_parser.rb', line 120

def values_map(values)
  Hash[@keys.zip(values)]
end