Skip to content

Commit b172ba9

Browse files
docs(locadex): add translations
1 parent 8a73074 commit b172ba9

File tree

261 files changed

+24107
-19150
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+24107
-19150
lines changed

gt-lock.json

Lines changed: 8604 additions & 7388 deletions
Large diffs are not rendered by default.

i18n/jp/docusaurus-plugin-content-docs/current/cloud/reference/01_changelog/01_changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ ClickHouse Cloud は、SOC2 Type II 準拠、本番ワークロード向けの
16081608

16091609
### 一般的な変更 \{#general-changes-5\}
16101610

1611-
- ローカルの ClickHouse テーブルおよび HTTP ソースからの[辞書](/sql-reference/dictionaries/index.md)のサポートを追加
1611+
- ローカルの ClickHouse テーブルおよび HTTP ソースからの[辞書](/sql-reference/statements/create/dictionary)のサポートを追加
16121612
- ムンバイ[リージョン](/cloud/reference/supported-regions)のサポートを追加
16131613

16141614
### コンソールの変更 \{#console-changes-30\}

i18n/jp/docusaurus-plugin-content-docs/current/dictionary/index.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ slug: /dictionary
33
title: 'Dictionary'
44
keywords: ['dictionary', 'dictionaries']
55
description: 'Dictionary は、高速なルックアップのためのキー値型データ表現を提供します。'
6-
doc_type: 'reference'
6+
doc_type: 'guide'
77
---
88

99
import dictionaryUseCases from '@site/static/images/dictionary/dictionary-use-cases.png';
1010
import dictionaryLeftAnyJoin from '@site/static/images/dictionary/dictionary-left-any-join.png';
1111
import Image from '@theme/IdealImage';
1212

13+
1314
# Dictionary \{#dictionary\}
1415

15-
ClickHouse における Dictionary は、さまざまな[内部および外部ソース](/sql-reference/dictionaries#dictionary-sources)からのデータをインメモリの[キー・バリュー](https://en.wikipedia.org/wiki/Key%E2%80%93value_database)形式で表現し、超低レイテンシーなルックアップクエリのために最適化されたものです。
16+
ClickHouse における Dictionary は、さまざまな[内部および外部ソース](/sql-reference/statements/create/dictionary/sources#dictionary-sources)からのデータをインメモリの[キー・バリュー](https://en.wikipedia.org/wiki/Key%E2%80%93value_database)形式で表現し、超低レイテンシーなルックアップクエリのために最適化されたものです。
1617

1718
Dictionary は次の用途に有用です:
1819

@@ -87,7 +88,7 @@ Controversial_ratio: 0
8788

8889
#### Dictionary の適用 \{#applying-a-dictionary\}
8990

90-
これらの概念を示すために、投票データに対して Dictionary を使用します。Dictionary は通常メモリ上に保持されるため([ssd_cache](/sql-reference/dictionaries#ssd_cache) は例外)、データサイズに留意しておく必要があります。ここで `votes` テーブルのサイズを確認します:
91+
これらの概念を示すために、投票データに対して Dictionary を使用します。Dictionary は通常メモリ上に保持されるため([ssd_cache](/sql-reference/statements/create/dictionary/layouts/ssd-cache) は例外)、データサイズに留意しておく必要があります。ここで `votes` テーブルのサイズを確認します:
9192

9293
```sql
9394
SELECT table,
@@ -105,7 +106,7 @@ GROUP BY table
105106

106107
データは Dictionary 内で非圧縮のまま保存されるため、すべてのカラム(実際にはそうしません)を Dictionary に保存すると仮定すると、少なくとも 4GB のメモリが必要になります。Dictionary はクラスター全体でレプリケートされるため、このメモリ量は *ノードごとに* 確保しておく必要があります。
107108

108-
> 以下の例では、Dictionary 用のデータは ClickHouse テーブルを起点としています。これは最も一般的な Dictionary のソースですが、ファイル、HTTP、さらには [Postgres](/sql-reference/dictionaries#postgresql) を含むデータベースなど、[複数のソース](/sql-reference/dictionaries#dictionary-sources) がサポートされています。後ほど示すように、Dictionary は自動更新が可能であり、頻繁に変更が発生する小規模なデータセットをダイレクトに JOIN で参照可能にする理想的な手段です。
109+
> 以下の例では、Dictionary 用のデータは ClickHouse テーブルを起点としています。これは最も一般的な Dictionary のソースですが、ファイル、HTTP、さらには [Postgres](/sql-reference/statements/create/dictionary/sources/postgresql) を含むデータベースなど、[複数のソース](/sql-reference/statements/create/dictionary/sources#dictionary-sources) がサポートされています。後ほど示すように、Dictionary は自動更新が可能であり、頻繁に変更が発生する小規模なデータセットをダイレクトに JOIN で参照可能にする理想的な手段です。
109110
110111
Dictionary には、ルックアップを行うためのプライマリキーが必要です。これは概念的にはトランザクションデータベースのプライマリキーと同じで、一意である必要があります。上記のクエリでは、JOIN キーである `PostId` に対してルックアップを行います。Dictionary には、`votes` テーブルから `PostId` ごとの賛成票と反対票の合計が格納されている必要があります。以下は、この Dictionary 用データを取得するクエリです。
111112

@@ -319,20 +320,20 @@ Peak memory usage: 666.82 MiB.
319320
320321
### Dictionary の `LAYOUT` を選択する \{#choosing-the-dictionary-layout\}
321322
322-
`LAYOUT` 句は、Dictionary の内部データ構造を決定します。複数のオプションがあり、その詳細は[こちら](/sql-reference/dictionaries#ways-to-store-dictionaries-in-memory)に記載されています。適切なレイアウトを選択するためのヒントは[こちら](https://clickhouse.com/blog/faster-queries-dictionaries-clickhouse#choosing-a-layout)で確認できます。
323+
`LAYOUT` 句は、Dictionary の内部データ構造を決定します。複数のオプションがあり、その詳細は[こちら](/sql-reference/statements/create/dictionary/layouts#ways-to-store-dictionaries-in-memory)に記載されています。適切なレイアウトを選択するためのヒントは[こちら](https://clickhouse.com/blog/faster-queries-dictionaries-clickhouse#choosing-a-layout)で確認できます。
323324
324325
### Dictionary の更新 \{#refreshing-dictionaries\}
325326
326327
`LIFETIME` を `MIN 600 MAX 900` として Dictionary に指定しています。LIFETIME は Dictionary の更新間隔を表し、ここで指定した値により 600~900 秒のランダムな間隔で定期的に再読み込みが行われます。このランダムな間隔は、多数のサーバーで更新を行う際に、Dictionary のソースへの負荷を分散するために必要です。更新中も Dictionary の旧バージョンに対するクエリは引き続き実行可能であり、クエリがブロックされるのは初回ロード時のみです。`(LIFETIME(0))` を設定すると、Dictionary が更新されなくなる点に注意してください。
327328
Dictionary は `SYSTEM RELOAD DICTIONARY` コマンドを使用して強制的に再読み込みできます。
328329
329-
ClickHouse や Postgres のようなデータベースソースの場合、クエリのレスポンスに基づいて実際に変更があった場合にのみ Dictionary を更新するように設定でき、一定間隔での更新に代えてこの方式を利用できます。詳細は[こちら](/sql-reference/dictionaries#refreshing-dictionary-data-using-lifetime)を参照してください。
330+
ClickHouse や Postgres のようなデータベースソースの場合、クエリのレスポンスに基づいて実際に変更があった場合にのみ Dictionary を更新するように設定でき、一定間隔での更新に代えてこの方式を利用できます。詳細は[こちら](/sql-reference/statements/create/dictionary/lifetime#refreshing-dictionary-data-using-lifetime)を参照してください。
330331
331332
### その他の Dictionary タイプ \{#other-dictionary-types\}
332333
333-
ClickHouse では、[Hierarchical](/sql-reference/dictionaries#hierarchical-dictionaries)、[Polygon](/sql-reference/dictionaries#polygon-dictionaries)、および [Regular Expression](/sql-reference/dictionaries#regexp-tree-dictionary) の各 Dictionary もサポートしています。
334+
ClickHouse では、[Hierarchical](/sql-reference/statements/create/dictionary/layouts/hierarchical)、[Polygon](/sql-reference/statements/create/dictionary/layouts/polygon)、および [Regular Expression](/sql-reference/statements/create/dictionary/layouts/regexp-tree) の各 Dictionary もサポートしています。
334335
335336
### 参考情報 \{#more-reading\}
336337
337338
- [辞書を利用してクエリを高速化する](https://clickhouse.com/blog/faster-queries-dictionaries-clickhouse)
338-
- [辞書の高度な設定](/sql-reference/dictionaries)
339+
- [辞書の高度な設定](/sql-reference/statements/create/dictionary)

i18n/jp/docusaurus-plugin-content-docs/current/engines/table-engines/integrations/mysql.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: 'MySQL テーブルエンジン'
77
doc_type: 'reference'
88
---
99

10-
# MySQL テーブルエンジン \{#mysql-table-engine\}
10+
# MySQL table engine \{#mysql-table-engine\}
1111

1212
MySQL エンジンを使用すると、リモートの MySQL サーバー上に保存されているデータに対して `SELECT` および `INSERT` クエリを実行できます。
1313

@@ -62,6 +62,7 @@ SETTINGS
6262
CREATE TABLE test_replicas (id UInt32, name String, age UInt32, money UInt32) ENGINE = MySQL(`mysql{2|3|4}:3306`, 'clickhouse', 'test_replicas', 'root', 'clickhouse');
6363
```
6464

65+
6566
## 使用例 \{#usage-example\}
6667

6768
MySQL でテーブルを作成します:
@@ -87,7 +88,7 @@ mysql> select * from test;
8788
1 row in set (0,00 sec)
8889
```
8990

90-
通常の引数を使って ClickHouse にテーブルを作成する:
91+
通常の引数指定を用いて ClickHouse にテーブルを作成します:
9192

9293
```sql
9394
CREATE TABLE mysql_table
@@ -115,7 +116,7 @@ CREATE TABLE mysql_table
115116
ENGINE = MySQL(creds, table='test')
116117
```
117118

118-
MySQL テーブルからのデータ取得
119+
MySQL テーブルからデータを取得する
119120

120121
```sql
121122
SELECT * FROM mysql_table
@@ -127,6 +128,7 @@ SELECT * FROM mysql_table
127128
└────────────────┴────────┘
128129
```
129130

131+
130132
## 設定 \{#mysql-settings\}
131133

132134
デフォルト設定は接続の再利用も行わないため、効率的とは言えません。以下の設定により、サーバーが 1 秒あたりに処理できるクエリ数を増やすことができます。
@@ -196,4 +198,4 @@ SELECT * FROM mysql_table
196198
## 関連項目 \{#see-also\}
197199

198200
- [MySQL テーブル関数](../../../sql-reference/table-functions/mysql.md)
199-
- [MySQL を辞書のソースとして使用する](/sql-reference/dictionaries#mysql)
201+
- [MySQL を辞書のソースとして使用する](/sql-reference/statements/create/dictionary/sources#mysql)

i18n/jp/docusaurus-plugin-content-docs/current/engines/table-engines/integrations/odbc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,5 @@ SELECT * FROM odbc_t
141141

142142
## 関連項目 \{#see-also\}
143143

144-
- [ODBC 辞書](/sql-reference/dictionaries#mysql)
144+
- [ODBC 辞書](/sql-reference/statements/create/dictionary/sources#mysql)
145145
- [ODBC テーブル関数](../../../sql-reference/table-functions/odbc.md)

i18n/jp/docusaurus-plugin-content-docs/current/engines/table-engines/integrations/postgresql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ CREATE TABLE pg_table_schema_with_dots (a UInt32)
229229
**関連情報**
230230

231231
* [`postgresql` テーブル関数](../../../sql-reference/table-functions/postgresql.md)
232-
* [PostgreSQL をディクショナリのソースとして使用する](/sql-reference/dictionaries#mysql)
232+
* [PostgreSQL をディクショナリのソースとして使用する](/sql-reference/statements/create/dictionary/sources#mysql)
233233

234234

235235
## 関連コンテンツ \{#related-content\}

i18n/jp/docusaurus-plugin-content-docs/current/engines/table-engines/special/dictionary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ doc_type: 'reference'
99

1010
# Dictionary テーブルエンジン \{#dictionary-table-engine\}
1111

12-
`Dictionary` エンジンは、[Dictionary](../../../sql-reference/dictionaries/index.md) のデータを ClickHouse のテーブルとして利用できるようにします。
12+
`Dictionary` エンジンは、[Dictionary](../../../sql-reference/statements/create/dictionary/index.md) のデータを ClickHouse のテーブルとして利用できるようにします。
1313

1414
## \{#example\}
1515

i18n/jp/docusaurus-plugin-content-docs/current/getting-started/example-datasets/cell-towers.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ SELECT mcc, count() FROM cell_towers GROUP BY mcc ORDER BY count() DESC LIMIT 10
168168

169169
上記のクエリおよび [MCC リスト](https://en.wikipedia.org/wiki/Mobile_country_code) に基づくと、基地局数が最も多い国は米国、ドイツ、ロシアです。
170170

171-
これらの値をデコードするために、ClickHouse で [Dictionary](../../sql-reference/dictionaries/index.md) を作成することを検討してもよいでしょう。
171+
これらの値をデコードするために、ClickHouse で [Dictionary](../../sql-reference/statements/create/dictionary/index.md) を作成することを検討してもよいでしょう。
172+
172173

173174
## ユースケース:地理データの活用 \{#use-case\}
174175

i18n/jp/docusaurus-plugin-content-docs/current/integrations/data-sources/cassandra.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ doc_type: 'reference'
99

1010
# Cassandra 連携 \{#cassandra-integration\}
1111

12-
Cassandra との連携は Dictionary を介して行えます。詳細は[こちら](/sql-reference/dictionaries#cassandra)を参照してください。
12+
Cassandra との連携は Dictionary を介して行えます。詳細は[こちら](/sql-reference/statements/create/dictionary/sources/cassandra)を参照してください。

i18n/jp/docusaurus-plugin-content-docs/current/integrations/language-clients/csharp.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ using ClickHouse.Driver;
355355
using ClickHouse.Driver.ADO.Parameters;
356356

357357
var parameters = new ClickHouseParameterCollection();
358-
parameters.Add("id", 1L);
359-
parameters.Add("name", "Alice");
358+
parameters.AddParameter("id", 1L);
359+
parameters.AddParameter("name", "Alice");
360360

361361
await client.ExecuteNonQueryAsync(
362362
"INSERT INTO default.my_table (id, name) VALUES ({id:Int64}, {name:String})",
@@ -413,7 +413,7 @@ var options = new InsertOptions
413413
using ClickHouse.Driver.ADO.Parameters;
414414

415415
var parameters = new ClickHouseParameterCollection();
416-
parameters.Add("max_id", 100L);
416+
parameters.AddParameter("max_id", 100L);
417417

418418
var reader = await client.ExecuteReaderAsync(
419419
"SELECT * FROM default.my_table WHERE id < {max_id:Int64}",
@@ -683,7 +683,7 @@ while (reader.Read())
683683
3. **SQL の型ヒントでタイムゾーンを指定する。** `Unspecified` の DateTime 値を、UTC ではない DateTime カラムに対するパラメータとして使用する場合は、SQL 内にタイムゾーンを含めます:
684684
```csharp
685685
var parameters = new ClickHouseParameterCollection();
686-
parameters.Add("dt", myDateTime);
686+
parameters.AddParameter("dt", myDateTime);
687687

688688
await client.ExecuteNonQueryAsync(
689689
"INSERT INTO table (dt) VALUES ({dt:DateTime('Europe/Amsterdam')})",

0 commit comments

Comments
 (0)