# tMongoDBInput

MongoDBデータベースのコレクションからレコードを取得し、後続のコンポーネントに転送して表示または保存します。

tMongoDBInputでは、ドキュメントの検索条件となるフィールドにマッチするドキュメントのクエリーを行い、MongoDBデータベースコレクションから特定のドキュメントを取得します。

Talendでサポートされているテクノロジーの詳細は、[Talendコンポーネント](https://help.qlik.com/talend/r/ja-JP/7.3/components/mongodb)をご覧ください。

使用しているTalend製品に応じて、このコンポーネントは、次のジョブのフレームワークの1つ、一部、またはすべてで使用できます。

* 標準:[tMongoDBInputの標準プロパティ](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodbinput-standard-properties)をご覧ください。

  このフレームワーク内のコンポーネントは、ビッグデータ対応のTalend 製品すべて、およびTalend Data Fabricで利用できます。

* Spark Batch:[Apache Spark BatchのtMongoDBInputプロパティ](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodbinput-properties-for-apache-spark-batch)をご覧ください。

  このフレームワーク内のコンポーネントは、ビッグデータ対応のTalend 製品すべて、およびTalend Data Fabricで使用できます。

* Spark Streaming:[Apache Spark StreamingのtMongoDBInputプロパティ](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodbinput-properties-for-apache-spark-streaming)をご覧ください。

  この種類のジョブでは、ルックアップデータのサイズがジョブの実行に割り当てられたメモリ容量に収まっている場合、ルックアップデータを提供するためにtMongDBInputが使用されます。MongoDBからのデータ読み取りで一度実行され、データをメモリに保管してメインフローからのマイクロバッチでデータに簡単にアクセスできるようにします。ルックアップデータが大きすぎてメモリに保管できない場合は、代わりにtMongoDBLookupInputを使用することをお勧めします。ルックアップ結合キーに一致するデータのみが読み取られます。

  このコンポーネントは、Talend Real Time Big Data PlatformおよびTalend Data Fabricで利用できます。

### このセクション内

* [tMongoDBInputの標準プロパティ](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodbinput-standard-properties)
* [Apache Spark BatchのtMongoDBInputプロパティ](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodbinput-properties-for-apache-spark-batch)
* [Apache Spark StreamingのtMongoDBInputプロパティ](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodbinput-properties-for-apache-spark-streaming)

**関連概念**

[コレクションの作成とデータの書き込み](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodbinput-tmongodboutput-tlogrow-creating-collection-and-writing-data-to-it-standard-component-bigdata-this)

[MongoDBデータベースへのデータのインポート](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodbinput-tmongodbbulkload-tlogrow-tmongodbbulkload-tlogrow-importing-data-into-mongodb-database-standard-component-bigdata-the)

[高度なクエリーによるコレクションからのデータの取得](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodbinput-tmongodbconnection-tmongodbclose-tlogrow-retrieving-data-from-collection-by-advanced-queries-standard-component-bigdata-in-this)

[コレクション内のレコードをアップサートする](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodbinput-tmongodboutput-tlogrow-upserting-records-in-collection-standard-component-bigdata-this)

[MongoDBファンクションを使用したコレクションの作成およびデータの書き込み](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodbinput-tmongodbrow-tlogrow-using-mongodb-functions-to-create-collection-and-write-data-to-it-standard-component-bigdata-this)

[Spark Batchジョブを使用してMongoDBでデータの読み書きを行う](https://help.qlik.com/talend/ja-JP/components/7.3/mongodb/tmongodboutput-tmongodbinput-ts3configuration-writing-and-reading-data-from-mongodb-using-spark-batch-job-spark-batch-component-in-this)