tFileOutputJSON Standard properties
These properties are used to configure tFileOutputJSON running in the Standard Job framework.
The Standard tFileOutputJSON component belongs to the File family.
The component in this framework is available in all Talend products.
Basic settings
File Name |
Name and path of the output file. Information noteWarning: Use absolute path (instead of relative path) for
this field to avoid possible errors.
|
Generate an array json |
Select this check box to generate an array JSON file. |
Name of data block |
Enter a name for the data block to be written, between double quotation marks. This field disappears when the Generate an array json check box is selected. |
Schema and Edit Schema |
A schema is a row description. It defines the number of fields (columns) to be processed and passed on to the next component. When you create a Spark Job, avoid the reserved word line when naming the fields.
Click Edit schema to make changes to the schema. If the current schema is of the Repository type, three options are available:
This component offers the advantage of the dynamic schema feature. This allows you to retrieve unknown columns from source files or to copy batches of columns from a source without mapping each column individually. For further information about dynamic schemas, see Dynamic schema. This dynamic schema feature is designed for the purpose of retrieving unknown columns of a table and is recommended to be used for this purpose only; it is not recommended for the use of creating tables. Information noteNote: The support for dynamic schema is available only when you have installed the
8.0.1-R2022-05 Talend Studio Monthly update or a later one delivered by Talend. For more information, check with your administrator.
|
Sync columns |
Click to synchronize the output file schema with the input file schema. The Sync function only displays once the Row connection is linked with the Output component. |
Advanced settings
Create directory if not exists |
This check box is selected by default. This option creates the directory that will hold the output files if it does not already exist. |
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a Job level as well as at each component level. |
Global Variables
Global Variables |
NB_LINE: the number of rows read by an input component or transferred to an output component. This is an After variable and it returns an integer. ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box. A Flow variable functions during the execution of a component while an After variable functions after the execution of the component. To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from it. For more information about variables, see Using contexts and variables. |
Usage
Usage rule |
Use this component to rewrite received data in a JSON structured output file. |