Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
10 KiB
File Output
Overview
The File Output operator uses delimiters to concatenate existing fields and exports new fields to a file.
Input and Output
- Input: fields to be exported
- Output: files
Parameter Description
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 |
Data Processing Rule
The field is exported to a file.
Example
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