Skip to content

CSVReader

Steve Cote edited this page Mar 9, 2018 · 2 revisions

The Character Separated Value Reader reads not only RFC4180 Comma Separated Value (CSV) files, but any text file delimited with any character.

Configuration

The minimum configuration for a CsvReader is a specification of the class and the source:

"Reader" : {
	"class" : "CsvReader",
	"source" : "demo/users.csv"
},

Configuration Attributes

These are the configuration attributes supported by the component:

Attribute Values Description
class CSVReader This is the name of the class the engine is to load for the reader.
source URI or filename The name of the file to read.
header true, false True instructs the reader to treat the first line as the header. This will result in the fields being named as specified in the header line.False (the default) instructs the reader to treat the first line as data and will name each field will be named as "COL1, COL2...etc".
character "," or ";" etc. The default character is the comma and the reader supports RFC4180 CSV file formats by default. Other delimiters can be defined. NOTE: if multiple characters are defined, only the first character will be used.
preload true, false This instruct the reader to read the entire file into memory before sending the first frame through the engine. The default is false which instructs the reader to keep the file open and read one line at a time.

Home

  1. Concepts
  2. Features
  3. Transform Engine
  4. Quick Start
  5. Configuration
  6. Secrets Vault
  7. Readers
  8. Writers
    • List of Writers
    • Custom Writers
  9. Filters
    • Accept
    • Reject
    • Custom Filters
  10. Tasks
    • List of Tasks
    • Custom Tasks
  11. Validators
    • List of Validators
    • Custom Validators
  12. Listeners
    • List of Listeners
    • Custom Listeners
  13. Transforms
    • List of Transforms
    • Custom Transforms
  14. Mappers
  15. Context
  16. Databases
  17. Templates
  18. Logging
  19. Encryption
  20. Usage
  21. Expressions
  22. Examples
Clone this wiki locally