⛔️ DEPRECATED
This plugin is no more needed as it is incorporated into metafacture-core.
metafacture-csv-plugin
A plugin for metafacture that extends the standard CSV module.
Build
Command Reference
Command | In | Out |
---|---|---|
encode-csv |
StreamReceiver |
String |
encode-csv
Description
A simple encoder that constructs a table of Comma-separated values (CSV).
Structure:
-
Each record represents a row
-
The sequential order of literal values forms a row
-
The sequential order of literal names of the first record is used as header (Optional)
-
CSV Dialect:
-
Delimiter: ,
-
Quote Char: "
-
Line Terminator: \n
-
Quoting: Quote All
Example Output:
"output","example","2018"
Syntax
encode-csv([separator],[includeHeader],[includeRecordId])
Parameters
-
separator
: Delimiter symbol (Default: comma) -
noQuotes
: Disables the usage of a quote character. -
includeHeader
: Add a header with column names (Default: false). -
includeRecordId
: Add the record id as first element of each row (Default: false).
Example
Flux:
... | encode-csv(separator=",", includeRecordId="true") | print;