tMongoDBGridFSList
Retrieves a list of files based on a query.
tMongoDBGridFSList iterates on files
of a bucket in MongoDB GridFS.
tMongoDBGridFSList Standard properties
These properties are used to configure tMongoDBGridFSList running in the Standard Job framework.
The Standard
tMongoDBGridFSList component belongs to the Big Data and the Databases NoSQL families.
The component in this framework is available in all Talend products with Big Data
and in Talend Data Fabric.
Basic settings
Property type |
Either Built-In or Repository. Built-In: No property data stored centrally.
Repository: Select the repository file where the |
Use an existing connection |
Select this check box and in the Component List click the relevant connection component to Note that when a Job contains the parent Job and the child Job, |
Use replica set address or multiple query routers |
Select this check box to show the Server In the Server addresses table, define the sharded |
Server and Port |
IP address and listening port of the database server. Available when the Use replica set Note that if you use the authentication mechanisms to connect to this MongoDB |
Database |
Name of the database. |
Use SSL connection |
Select this check box to enable the SSL or TLS encrypted connection. Then you need to use the tSetKeystore Note that the SSL connection is available only for the version 2.4 + of |
Set read preference |
Select this check box and from the Read preference If you leave this check box clear, the Job uses the default Read preference, that is to For further information, see MongoDB’s documentation about Replication and its Read |
Use authentication |
Select this check box to enable the database authentication. Among the mechanisms listed on the Authentication mechanism For details about the other mechanisms in this list, see MongoDB Authentication from the MongoDB |
Set Authentication database |
If the username to be used to connect to MongoDB has been created in a specific For further information about the MongoDB Authentication database, see User Authentication database. |
Username and Password |
DB user authentication data. To enter the password, click the […] button next to the Available when the Required If the security system you have selected from the Authentication mechanism drop-down list is Kerberos, you need to |
Bucket |
Enter the name of the bucket in which the files to be listed are |
Query |
Enter the query to be used to select the files to be listed. You need
|
Advanced settings
tStatCatcher Statistics |
Select this check box to collect the log data at the component |
No query timeout |
Select this check box to prevent MongoDB servers from stopping idle A cursor for MongoDB is a pointer to the result set of a query. By |
Global Variables
Global Variables |
NB_FILE: the number of files processed. This is an After
ERROR_MESSAGE: the error message generated by the
CURRENT_FILEID: the value of the ObjectId (the file ID) attribute of the current file. This is an Flow
CURRENT_FILENAME: the value of the filename attribute of the current file. This is an Flow
CURRENT_FILEUPLOADDATE: the value of the uploadDate attribute of the current file. This is an Flow
CURRENT_FILELENGTH: the value of the length (the size) attribute of the current file. This is an
CURRENT_FILEMD5: the value of the md5 attribute of the current file. This is an Flow variable and it returns a 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 |
Usage
Usage rule |
This component combines MongoDB GridFS connection and data iteration, thus usually used Different lists are returned, each representing an attribute of these It is often connected to the Job using OnSubjobOk or OnComponentOk link, depending on the context. |
Related scenario
For a scenario using tMongoDBGridFSList, see Managing files using MongoDB GridFS.