Retrieves records from a collection in the MongoDB database and transfers them to the following component for display or storage.
tMongoDBInput retrieves certain documents from a MongoDB database collection by supplying a query document containing the fields the desired documents should match.
This component is not shipped with your Talend Studio by default. You need to install it using the Feature Manager. For more information, see Installing features using the Feature Manager.
For more technologies supported by Talend, see Talend components.
Depending on the Talend product you are using, this component can be used in one, some or all of the following Job frameworks:
Standard: see tMongoDBInput Standard properties.
The component in this framework is available in all Talend products with Big Data and in Talend Data Fabric.
Spark Batch: see tMongoDBInput properties for Apache Spark Batch.
The component in this framework is available in all subscription-based Talend products with Big Data and Talend Data Fabric.
Spark Streaming: see tMongoDBInput properties for Apache Spark Streaming.
In this type of Job, tMongDBInput is used to provide lookup data, when the size of the lookup data fits the amount of memory allocated for the execution of the Job. It is executed once to read data from MongoDB and store the data in memory so that the micro-batches from the main flow can easily access the data. If the lookup data is too large to be stored in memory, it is recommended to use tMongoDBLookupInput instead, which loads only the data matching the lookup join key.
This component is available in Talend Real Time Big Data Platform and Talend Data Fabric.