Component Family |
Custom Code |
|
Function |
tLibraryLoad allows you to import |
|
Purpose |
tLibraryLoad allows you to load |
|
Basic settings |
Library |
Select the library you want to import from the list, or click on |
Advanced settings |
Dynamic Libs |
Lib Paths: Enter the access path |
|
Import |
Enter the Java code required to import, if required, the external |
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 |
|
Usage |
This component may be used alone, although it is more logical to WarningThe library is loaded locally. |
|
Usage in Map/Reduce Jobs |
If you have subscribed to one of the Talend solutions with Big Data, you can also You need to use the Hadoop Configuration tab in the This connection is effective on a per-Job basis. For further information about a Talend Map/Reduce Job, see the sections Note that in this documentation, unless otherwise explicitly stated, a scenario presents |
|
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 scenario uses two components, a tLibraryLoad and
a tJava. The goal of this scenario is to check the
format of an e-mail address and verify whether the format is valid or not.
-
In the Palette, open the Custom_Code folder, and slide a tLibraryLoad and tJava
component onto the workspace. -
Connect tLibraryLoad to tJava using a Trigger > OnSubjobOk
link.
-
Double-click on tLibraryLoad to display
its Basic settings. From the Library list, select
jakarta-oro-2.0.8.jar. -
In the Import field of the Advanced settings tab, type import
org.apache.oro.text.regex.*;
-
Double-click on tJava to display its
Component view. -
In the Basic settings tab, enter your
code, as in the screenshot below. The code allows you to check whether the
character string pertains to an e-mail address, based on the regular
expression:"^[\w_.-]+@[\w_.-]+\.[\w]+$"
.