This is an automated email from the ASF dual-hosted git repository.
vinoth pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 61ff78d Travis CI build asf-site
61ff78d is described below
commit 61ff78dd928c7dda445d649ccb00f86c221ad3fb
Author: CI <[email protected]>
AuthorDate: Tue Jun 29 21:30:39 2021 +0000
Travis CI build asf-site
---
content/cn/docs/configurations.html | 8 ++++++--
content/docs/configurations.html | 21 +++++++++++++++++----
2 files changed, 23 insertions(+), 6 deletions(-)
diff --git a/content/cn/docs/configurations.html
b/content/cn/docs/configurations.html
index 57429e1..4d459d5 100644
--- a/content/cn/docs/configurations.html
+++ b/content/cn/docs/configurations.html
@@ -452,8 +452,12 @@
<span
style="color:grey">如果设置为true,则生成基于Hive格式的partition目录:<partition_column_name>=<partition_value></span></partition_value></partition_column_name></span></p>
<h4 id="KEYGENERATOR_CLASS_OPT_KEY">KEYGENERATOR_CLASS_OPT_KEY</h4>
-<p>属性:<code
class="highlighter-rouge">hoodie.datasource.write.keygenerator.class</code>,
默认值:<code
class="highlighter-rouge">org.apache.hudi.keygen.SimpleKeyGenerator</code> <br
/>
- <span style="color:grey">键生成器类,实现从输入的<code
class="highlighter-rouge">Row</code>对象中提取键</span></p>
+<p>属性:<code
class="highlighter-rouge">hoodie.datasource.write.keygenerator.class</code> <br
/>
+ <span style="color:grey">键生成器类,实现从输入的<code
class="highlighter-rouge">Row</code>对象中提取键。该配置优先级大于 <code
class="highlighter-rouge">hoodie.datasource.write.keygenerator.type</code>,
用于使用用户自定义键生成器</span></p>
+
+<h4 id="KEYGENERATOR_TYPE_OPT_KEY">KEYGENERATOR_TYPE_OPT_KEY</h4>
+<p>属性: <code
class="highlighter-rouge">hoodie.datasource.write.keygenerator.type</code>,
默认值: <code class="highlighter-rouge">SIMPLE</code> <br />
+<span style="color:grey">键生成器类型,默认 <code
class="highlighter-rouge">SIMPLE</code> 类型,该配置优先级低于 <code
class="highlighter-rouge">hoodie.datasource.write.keygenerator.class</code>,
是推荐使用的配置方式</span></p>
<h4
id="COMMIT_METADATA_KEYPREFIX_OPT_KEY">COMMIT_METADATA_KEYPREFIX_OPT_KEY</h4>
<p>属性:<code
class="highlighter-rouge">hoodie.datasource.write.commitmeta.key.prefix</code>,
默认值:<code class="highlighter-rouge">_</code> <br />
diff --git a/content/docs/configurations.html b/content/docs/configurations.html
index 55b641f..e3440a8 100644
--- a/content/docs/configurations.html
+++ b/content/docs/configurations.html
@@ -499,8 +499,15 @@ The actual datasource level configs are listed below.</p>
<td>KEYGENERATOR_CLASS_OPT_KEY</td>
<td>hoodie.datasource.write.keygenerator.class</td>
<td>NO</td>
- <td>org.apache.hudi.keygen.SimpleKeyGenerator</td>
- <td>Key generator class, that implements will extract the key out of
incoming Row object.</td>
+ <td>No default</td>
+ <td>Key generator class, that implements will extract the key out of
incoming <code class="highlighter-rouge">Row</code> object. This config has
higher precedence over keygen type, and it is used for user-defined
KeyGenerator .</td>
+ </tr>
+ <tr>
+ <td>KEYGENERATOR_TYPE_OPT_KEY</td>
+ <td>hoodie.datasource.write.keygenerator.type</td>
+ <td>NO</td>
+ <td>SIMPLE</td>
+ <td>Key generator type, , that indicate which KeyGenerator to use.
This is the recommended configuration option for key generator, and has lower
priority than <code class="highlighter-rouge">KEYGENERATOR_CLASS_OPT_KEY</code>
.</td>
</tr>
<tr>
<td>COMMIT_METADATA_KEYPREFIX_OPT_KEY</td>
@@ -739,8 +746,14 @@ The actual datasource level configs are listed below.</p>
<tr>
<td><code
class="highlighter-rouge">hoodie.datasource.write.keygenerator.class</code></td>
<td>N</td>
- <td>SimpleAvroKeyGenerator.class</td>
- <td><span style="color:grey"> Key generator class, that implements
will extract the key out of incoming record </span></td>
+ <td>No default</td>
+ <td><span style="color:grey"> Key generator class, that implements
will extract the key out of incoming <code class="highlighter-rouge">Row</code>
object. This config has higher precedence over keygen type, and it is used for
user-defined KeyGenerator </span></td>
+ </tr>
+ <tr>
+ <td><code
class="highlighter-rouge">hoodie.datasource.write.keygenerator.type</code></td>
+ <td>N</td>
+ <td>SIMPLE</td>
+ <td><span style="color:grey"> Key generator type, that indicate which
KeyGenerator to use. This is the recommended configuration option for key
generator, and has lower priority than <code
class="highlighter-rouge">KEYGENERATOR_CLASS_OPT_KEY</code> </span></td>
</tr>
<tr>
<td><code
class="highlighter-rouge">write.partition.url_encode</code></td>