You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/12/04 04:06:49 UTC

[GitHub] [incubator-shardingsphere-doc] terrymanu commented on a change in pull request #380: Update the Snowflake, leafSnowflake, leafSegment property configuration requirements

terrymanu commented on a change in pull request #380: Update the Snowflake, leafSnowflake, leafSegment property configuration requirements
URL: https://github.com/apache/incubator-shardingsphere-doc/pull/380#discussion_r353540215
 
 

 ##########
 File path: document/current/content/manual/sharding-jdbc/configuration/config-java.en.md
 ##########
 @@ -283,7 +283,39 @@ The implementation class of `ShardingStrategyConfiguration`, used to configure n
 | ----------------- | ---------------------------- | ------------------------------------------------------------------------------------------- |
 | column            | String                       | Column name of key generator                                                                |
 | type              | String                       | Type of key generator,use user-defined ones or built-in ones, e.g. SNOWFLAKE, UUID         |
-| props             | Properties                   | Property configuration, note:<br>To use the SNOWFLAKE algorithm, you need to configure the `worker.id` and `max.tolerate.time.difference.milliseconds` properties<br> To use the LEAF_SEGMENT algorithm, you need to configure: required `serverList`, `leafKey` and optional `initialValue`, `step`, `digest`, `registryCenterType`<br> To use the LEAF_SNOWFLAKE algorithm, you need to configure: required `serverList`, `serviceId` and optional `maxTimeDifference`, `digest`, `registryCenterType`|
+| props             | Properties                   | The Property configuration of  `SNOWFLAKE/LEAF_SEGMENT/LEAF_SNOWFLAKE` key generator |
+
+Property configuration that can include these properties of the key generators
+
+###### SNOWFLAKE
+  
+  | *Name*         | *DataType* |    *ConfigurationLevel*     | *Explanation* |
+  | ------------------- | -------- | ---------------- | ------------------ |
+  | worker.id(?)           | long |    optional | The unique id for working machine , the default is `0` if you do not configure it. |
 
 Review comment:
   `if you do not configure it` can be removed

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services