Class: Fluent::Plugin::CSVParser

Inherits:
ValuesParser show all
Defined in:
lib/fluent/plugin/parser_csv.rb

Direct Known Subclasses

Compat::TextParser::CSVParser

Constant Summary

Constants included from Compat::TypeConverter

Compat::TypeConverter::Converters

Constants inherited from Parser

Parser::TimeParser

Constants included from Configurable

Configurable::CONFIG_TYPE_REGISTRY

Instance Attribute Summary

Attributes inherited from Parser

#estimate_current_event

Attributes inherited from Base

#under_plugin_development

Instance Method Summary collapse

Methods inherited from ValuesParser

#configure, #values_map

Methods included from Compat::TypeConverter

#configure, included

Methods inherited from Parser

#call, #initialize

Methods included from TimeMixin::Parser

included, #time_parser_create

Methods included from OwnedByMixin

#log, #owner, #owner=

Methods inherited from Base

#after_shutdown, #after_shutdown?, #after_start, #after_started?, #before_shutdown, #before_shutdown?, #close, #closed?, #configure, #configured?, #has_router?, #initialize, #inspect, #shutdown, #shutdown?, #start, #started?, #stop, #stopped?, #terminate, #terminated?

Methods included from SystemConfig::Mixin

#system_config, #system_config_override

Methods included from Configurable

#config, #configure, included, #initialize, lookup_type, register_type

Constructor Details

This class inherits a constructor from Fluent::Plugin::Parser

Instance Method Details

#parse(text) {|values_map(CSV.parse_line(text, col_sep: @delimiter))| ... } ⇒ Object

Yields:

  • (values_map(CSV.parse_line(text, col_sep: @delimiter)))


28
29
30
# File 'lib/fluent/plugin/parser_csv.rb', line 28

def parse(text)
  yield values_map(CSV.parse_line(text, col_sep: @delimiter))
end