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:
|
|
Built-In: You create and store the schema locally for this component only. |
|
Repository: You have already created the schema and stored it in the Repository. You can reuse it in various projects and Job designs. |
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 further information about variables, see Talend Studio User Guide. |
Usage
Usage rule |
Use this component to rewrite received data in a JSON structured output file. |