Class: FluentExt::TextParser::ValuesParser

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

Direct Known Subclasses

CSVParser, TSVParser

Instance Method Summary collapse

Methods inherited from GenericParser

#parse_time

Instance Method Details

#configure(conf) ⇒ Object


107
108
109
110
# File 'lib/fluent/plugin/fixed_parser.rb', line 107

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

#values_map(values) ⇒ Object


112
113
114
# File 'lib/fluent/plugin/fixed_parser.rb', line 112

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