Component family |
File/Management |
|
Function |
tFileProperties creates a single |
|
Purpose |
tFileProperties obtains |
|
Basic settings |
Schema and Edit |
A schema is a row description, it defines the fields to be processed and passed on to The schema of this component is read-only. It describes the main
|
|
File |
Name or path to the file to be processed and/or the variable to be For further information about how to define and use a variable in |
|
Calculate MD5 Hash |
Select this check box to check the MD5 of the downloaded |
Advanced settings |
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a |
Usage |
This component can be used as standalone component. |
|
Connections |
Outgoing links (from this component to another): Row: Main; Iterate.
Trigger: On Subjob Ok; On Subjob Incoming links (from one component to this one): Row: Iterate.
Trigger: Run if; On Subjob Ok; On For further information regarding connections, see |
|
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Log4j |
The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html. |
|
Limitation |
n/a |
This Java scenario describes a very simple Job that displays the properties of the
specified file.
-
Drop a tFileProperties component and a
tLogRow component from the Palette onto the design workspace. -
Right-click on tFileProperties and connect it
to tLogRow using a Main
Row link. -
In the design workspace, select tFileProperties.
-
Click the Component tab to define the basic
settings of tFileProperties. -
Set Schema type to Built-In.
-
If desired, click the Edit schema button to
see the read-only columns. -
In the File field, enter the file path or
browse to the file you want to display the properties for. -
In the design workspace, select tLogRow and
click the Component tab to define its basic
settings. For more information, see tLogRow. -
Press F6 to execute the Job.
The properties of the defined file are displayed on the console.