CSVRowOutput

CSVRowOutput

Takes a RowDataDTO (containing a generated row) and writes this row into a CSV file. This RowOutput does not provide ordering of rows. Rows are written when they arrive form the worker threads. Two or more programm runs may not result in the same output as it conceners ordering of generated rows.

Attributes
Name Description Required Min Max Allowed Values
seed Random number generator seed of this Element. Overrides default seeding behavior. no 0 1
name (Class)Name of this element. Used to identify plugin Class. Full name is required. Example: com.en.myPluginPackage.myPuginClass yes 1 1
active Boolean flag if this output is active/used no 0 1
  • true
  • false
  • 0
  • 1
id Identification String of this element. May be used to uniquely identify a field within the children of an Element. no 0 1
Nodes
Name Description Required Min Max Allowed Values
fileTemplate Content type: Java code
Generic directory and filename of file to put the generated data in. Available variables: project, table, tableID, timeID, output, nodeCount, nodeNumber, outputDir, fileEnding
yes 1 1
quoteStrings Content type: Boolean
Puts quotation marks arround strings. Default: false
no 0 1
  • true
  • false
  • 0
  • 1
padding Content type: Boolean
If true, padds the generated value with whitespace(s) until <field><size> characters are written. Default: false
Example <delimiter> is: ; Let <field name='a'><size>5</size> and <field name='b'><size>6</size>. Values a='foo', b='bar'. Output will be: 'foo ;bar ;'
no 0 1
  • true
  • false
  • 0
  • 1
bufferSize Content type: Integer
Buffersize for output. Buffersize is the amount of bytes cached before a write to a file occurs.
no 0 1
quotationCharacter Content type: Character
Character to use when quoteStrings == true to quote strings. Default quotation mark:"
no 0 1
outputDir Content type: String (must be a valid filesystem path)
Directory to put the generated files in.
no 0 1
charset Content type: String
Charset used for output encoding.
no 0 1
delimiter Content type: Character
Delimiter char used in CSV. examples: { , ; | \t}.
no 0 1
fileEnding Content type: String
Ending of output files.
no 0 1
fieldIDOffset Content type: Long
Exclude the first [0,fieldIDOffset[ field IDs. These fields are not written to the output file.
no 0 1
delimiterAtLineEnd Content type: Boolean
If true, puts a delimiter character at every line end. Default: false
no 0 1
  • true
  • false
  • 0
  • 1
excludedHistoricalFields Content type: Long
Exclude the first [0-FieldNumber[ field IDs in timeID == 0. FieldNumber is the first field to be written to file. timeID can be specified via the <excludedHistoricalFields historicalTimeIDsCount=""> attribute
no 0 1
sortByRowID Content type: Boolean
Enables sorting of RowDataDTOs by rowId.
no 0 1
  • true
  • false
  • 0
  • 1
Sub-Attributes
Parent Name Description Required Min Max Allowed Values
excludedHistoricalFields historicalTimeIDsCount Content type: Long
Specifies the number of time IDs which are seen as 'historical load'. Default value is timeID == 0.
no 0 1
2.6_#1486_b758 | 2016-05-24