# フィルター関数について

Treasure Dataのフィルター関数は、さまざまなソースからのすべてのデータを変換し、クエリとセグメンテーションに対応した単一のデータベースに統合するために重要です。

詳細については以下を参照してください：

* [データ変換](/ja/products/customer-data-platform/integration-hub/batch/import/filter/about-filter-functions#%E3%83%87%E3%83%BC%E3%82%BF%E5%A4%89%E6%8F%9B)
* [データ操作](/ja/products/customer-data-platform/integration-hub/batch/import/filter/about-filter-functions#%E3%83%87%E3%83%BC%E3%82%BF%E6%93%8D%E4%BD%9C)
* [データマスキング](/ja/products/customer-data-platform/integration-hub/batch/import/filter/about-filter-functions#%E3%83%87%E3%83%BC%E3%82%BF%E3%83%9E%E3%82%B9%E3%82%AD%E3%83%B3%E3%82%B0)
* [データ転送](/ja/products/customer-data-platform/integration-hub/batch/import/filter/about-filter-functions#%E3%83%87%E3%83%BC%E3%82%BF%E8%BB%A2%E9%80%81)


## データ変換

一般的に、企業はデータを他のデータと互換性を持たせるため、別のシステムに移動するため、他のデータと結合するため、またはデータ内の情報を集計するためにデータを変換したいと考えます。組織がさまざまなソースからデータを取り込む際、データ変換はデータを単一のデータベースに統合するために使用されます。

* データを新しいデータストアに移動する場合。例えば、クラウドデータウェアハウスに移行し、データ型を変更する必要がある場合。
* 非構造化データやストリーミングデータを構造化データと結合して、一緒にデータを分析したい場合。
* ルックアップの実行、ジオロケーションデータの追加、タイムスタンプの追加など、データを強化するための情報を追加したい場合。
* 異なる地域の売上データの比較や、異なる地域の売上合計など、集計を実行したい場合。
* プライバシーを保護するためにデータをマスクしたい場合。フィルター関数を使用すると、あるデータソースから別のデータソースに取り込む際に機密データをマスクできます。


フィルター関数により、データ変換と統合が可能になります。フィルターは、指定した条件に基づいて、Treasure Dataに入出力されるデータがどのようにフィルタリングされるかを決定します。フィルター関数は基本的にプラグインですが、Treasure Dataに自動的に含まれています。

データインポートとデータエクスポートの両方で使用できます。

Treasure Dataが提供するデータコネクタと統合の一部には、すでにいくつかのフィルタリング機能が含まれています。Treasure Dataは、作成するデータコネクタをカスタマイズするためにYAMLファイルに追加できるいくつかの関数も提供しています。フィルター関数を使用すると、データ操作、データマスキング、およびデータ転送をカスタマイズできます。

## データ操作

データ操作は、さまざまなデータソースをまとめて統合する際に重要です。Treasure Dataのフィルター関数は、以下を使用してこれを行う機能を提供します：

* [add_timeフィルター関数](/ja/products/customer-data-platform/integration-hub/batch/import/filter/add_time-filter-function)
* [Columnsフィルター関数](/ja/products/customer-data-platform/integration-hub/batch/import/filter/columns-filter-function)
* [csv_all_strings Guessフィルター関数](/ja/products/customer-data-platform/integration-hub/batch/import/filter/csv_all_strings-guess-filter-function)
* [CSVパーサー関数](/products/customer-data-platform/integration-hub/batch/import/parser/csv-parser-function)
* [column_optionsフィルター関数によるタイムスタンプ型データのタイムゾーン処理](/ja/products/customer-data-platform/integration-hub/batch/import/filter/handling-timezone-of-timestamp-type-data-by-column_options-filter-function)xyz
* [renameフィルター関数](/ja/products/customer-data-platform/integration-hub/batch/import/filter/rename-filter-function)
* [remove_columnsフィルター関数](/ja/products/customer-data-platform/integration-hub/batch/import/filter/remove_columns-filter-function)


## データマスキング

データ変換においてますます重要な目標の1つはデータマスキングです。プライバシーが組織にとってますます重要になる中、必要に応じて機密データをマスクする機能は優先事項です。Treasure Dataのフィルター関数は、以下を使用してそのレベルのセキュリティを提供します：

* [Decryptフィルター関数](/ja/products/customer-data-platform/integration-hub/batch/import/filter/decrypt-filter-function)
* [Encryptフィルター関数](/ja/products/customer-data-platform/integration-hub/batch/import/filter/encrypt-filter-function)
* [Hashフィルター関数](/ja/products/customer-data-platform/integration-hub/batch/import/filter/hash-filter-function)


## データ転送

データ転送で使用されるフィルター関数は、プロセスをより効果的にすることができます。データを簡単にデコードし、パースすることで、より簡単なデータ転送を可能にします。Treasure Dataのフィルター関数は、以下を使用してデータ転送をより効果的にします：

* [expand_jsonフィルター関数](/ja/products/customer-data-platform/integration-hub/batch/import/filter/expand_json-filter-function)
* [explode_json_columns出力フィルター関数](/ja/products/customer-data-platform/integration-hub/batch/import/filter/explode_json_columns-output-filter-function)
* [JSONパーサー](/ja/products/customer-data-platform/integration-hub/batch/import/parser/json-parser)
* [MessagePackパーサー関数](/ja/products/customer-data-platform/integration-hub/batch/import/parser/messagepack-parser-filter-function)
* [Query Stringパーサー関数](/ja/products/customer-data-platform/integration-hub/batch/import/parser/query-string-parser-filter-function)
* [ファイルデコーダー関数](/ja/products/customer-data-platform/integration-hub/batch/import/decoder/file-decoder-function)