Skip to content

metafacture/metafacture-csv-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⛔️ 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

metafacture csv plugin
gradlew test fatJar

Produces metafacture-csv-VERSION-plugin.jar in build/libs .

Place the build JAR inside the plugins directory of your metafacture-core distribution.

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;

About

Additions to the standard CSV module in Metafacture

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published