Class CSVReader

java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.controller.AbstractControllerService
All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent, org.apache.nifi.controller.ControllerService, RecordReaderFactory

@Tags({"csv","parse","record","row","reader","delimited","comma","separated","values"}) @CapabilityDescription("Parses CSV-formatted data, returning each row in the CSV file as a separate record. This reader allows for inferring a schema based on the first line of the CSV, if a \'header line\' is present, or providing an explicit schema for interpreting the values. See Controller Service\'s Usage for further documentation.") public class CSVReader extends SchemaRegistryService implements RecordReaderFactory
  • Field Details

    • HEADER_DERIVED

      private static final org.apache.nifi.components.AllowableValue HEADER_DERIVED
    • APACHE_COMMONS_CSV

      public static final org.apache.nifi.components.AllowableValue APACHE_COMMONS_CSV
    • JACKSON_CSV

      public static final org.apache.nifi.components.AllowableValue JACKSON_CSV
    • FAST_CSV

      public static final org.apache.nifi.components.AllowableValue FAST_CSV
    • CSV_PARSER

      public static final org.apache.nifi.components.PropertyDescriptor CSV_PARSER
    • TRIM_DOUBLE_QUOTE

      public static final org.apache.nifi.components.PropertyDescriptor TRIM_DOUBLE_QUOTE
    • context

      private volatile org.apache.nifi.controller.ConfigurationContext context
    • csvParser

      private volatile String csvParser
    • dateFormat

      private volatile String dateFormat
    • timeFormat

      private volatile String timeFormat
    • timestampFormat

      private volatile String timestampFormat
    • firstLineIsHeader

      private volatile boolean firstLineIsHeader
    • ignoreHeader

      private volatile boolean ignoreHeader
    • charSet

      private volatile String charSet
    • csvFormat

      private volatile org.apache.commons.csv.CSVFormat csvFormat
  • Constructor Details

    • CSVReader

      public CSVReader()
  • Method Details