The File Output operator uses delimiters to concatenate existing fields and exports new fields to a file.
Parameter |
Description |
Type |
Mandatory |
Default Value |
---|---|---|---|---|
Output delimiter |
Set a delimiter. |
string |
Yes |
None |
Line breaker |
Line delimiter, which can be any string specified by users based on the actual situation. Any character string is supported. The OS line delimiter is used by default. |
string |
No |
\n |
Output fields |
Information about output fields:
|
map |
No |
None |
The field is exported to a file.
Use the CSV File Input operator to generate two fields A and B.
The following figure shows the source file.
aaa,product bbb,Bigdata
Configure the File Output operator, set Output delimiter to a comma (,), and export A and B to a file, as shown in the following figure.
The following figure shows the result.
aaa,product bbb,Bigdata