> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-home-button.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Google Dataflow を使用して ClickHouse にデータを取り込むことができます

# Google Dataflow と ClickHouse の連携

export const ClickHouseSupportedBadge = () => {
  return <div className="ClickHouseSupportedBadge">
            <div className="ClickHouseSupportedIcon">
                <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <path d="M1.30762 1.39073C1.30762 1.3103 1.37465 1.22986 1.46849 1.22986H2.64824C2.72868 1.22986 2.80912 1.29689 2.80912 1.39073V14.4886C2.80912 14.5691 2.74209 14.6495 2.64824 14.6495H1.46849C1.38805 14.6495 1.30762 14.5825 1.30762 14.4886V1.39073Z" fill="currentColor" />
                    <path d="M4.2832 1.39073C4.2832 1.3103 4.35023 1.22986 4.44408 1.22986H5.62383C5.70427 1.22986 5.7847 1.29689 5.7847 1.39073V14.4886C5.7847 14.5691 5.71767 14.6495 5.62383 14.6495H4.44408C4.36364 14.6495 4.2832 14.5825 4.2832 14.4886V1.39073Z" fill="currentColor" />
                    <path d="M7.25977 1.39073C7.25977 1.3103 7.3268 1.22986 7.42064 1.22986H8.60039C8.68083 1.22986 8.76127 1.29689 8.76127 1.39073V14.4886C8.76127 14.5691 8.69423 14.6495 8.60039 14.6495H7.42064C7.3402 14.6495 7.25977 14.5825 7.25977 14.4886V1.39073Z" fill="currentColor" />
                    <path d="M10.2354 1.39073C10.2354 1.3103 10.3024 1.22986 10.3962 1.22986H11.576C11.6564 1.22986 11.7369 1.29689 11.7369 1.39073V14.4886C11.7369 14.5691 11.6698 14.6495 11.576 14.6495H10.3962C10.3158 14.6495 10.2354 14.5825 10.2354 14.4886V1.39073Z" fill="currentColor" />
                    <path d="M13.2256 6.6057C13.2256 6.52526 13.2926 6.44482 13.3865 6.44482H14.5662C14.6466 6.44482 14.7271 6.51186 14.7271 6.6057V9.27354C14.7271 9.35398 14.6601 9.43442 14.5662 9.43442H13.3865C13.306 9.43442 13.2256 9.36739 13.2256 9.27354V6.6057Z" fill="currentColor" />
                </svg>
            </div>
            ClickHouse Supported
        </div>;
};

[Google Dataflow](https://cloud.google.com/dataflow) は、完全マネージド型のストリーム処理およびバッチ データ処理サービスです。Java または Python で記述されたパイプラインをサポートし、Apache Beam SDK をベースに構築されています。

Google Dataflow を ClickHouse と組み合わせて使用する主な方法は 2 つあり、どちらも [`ClickHouseIO Apache Beam connector`](/ja/integrations/connectors/data-ingestion/etl-tools/apache-beam) を利用します。
以下の 2 つです。

* [Java ランナー](#1-java-runner)
* [事前定義済みテンプレート](#2-predefined-templates)

<div id="1-java-runner">
  ## Java ランナー
</div>

[Java ランナー](/ja/integrations/connectors/data-ingestion/GCP/google-dataflow/java-runner)を使用すると、Apache Beam SDK の `ClickHouseIO` インテグレーションを使って、カスタムの Dataflow パイプラインを実装できます。この方法ではパイプラインのロジックを全面的に柔軟かつ細かく制御できるため、特定の要件に合わせて ETL プロセスを調整できます。
ただし、このオプションを利用するには、Java プログラミングの知識と Apache Beam フレームワークへの習熟が必要です。

<div id="key-features">
  ### 主な特長
</div>

* カスタマイズ性が高い。
* 複雑なユースケースや高度なユースケースに適しています。
* コーディングと Beam API の理解が必要です。

<div id="2-predefined-templates">
  ## 事前定義済みテンプレート
</div>

ClickHouse は、BigQuery からのバッチインポートや、Pub/Sub から ClickHouse へのストリーミングインジェストなど、特定のユースケース向けに設計された[事前定義済みテンプレート](/ja/integrations/connectors/data-ingestion/GCP/google-dataflow/templates)を提供しています。これらのテンプレートはすぐに利用でき、インテグレーションのプロセスを簡素化できるため、ノーコードのソリューションを求める場合に適した選択肢です。

<div id="key-features-1">
  ### 主な機能
</div>

* Beam のコードを書く必要はありません。
* シンプルなユースケースなら、すばやく簡単にセットアップできます。
* プログラミングの経験がほとんどなくても利用できます。

どちらのアプローチも Google Cloud と ClickHouse エコシステムに完全対応しており、技術的な専門知識やプロジェクト要件に応じて柔軟に選択できます。
