From 4dfda3ec51f14b80db1170084ba3140665e382ec Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Sun, 3 Jul 2016 12:01:13 +0800 Subject: [PATCH] --- src/org/redkale/source/DistributeGenerator.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/org/redkale/source/DistributeGenerator.java b/src/org/redkale/source/DistributeGenerator.java index b6fec659a..103fb4c53 100644 --- a/src/org/redkale/source/DistributeGenerator.java +++ b/src/org/redkale/source/DistributeGenerator.java @@ -11,7 +11,18 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * - *

详情见: http://redkale.org + *

+ *     int   10万-100万     (36进制 4位)  255t - lflr
+ *     int  1000万-6000万   (36进制 5位)  5yc1t - zq0an
+ *     int    2亿-10亿      (36进制 6位)  3b2ozl - gjdgxr
+ *    long   30亿-770亿     (36进制 7位)  1dm4etd - zdft88v
+ *    long  1000亿-9999亿   (36进制 8位)  19xtf1tt - cre66i9r
+ *    随机文件名:   (32进制 26位)
+ * 
+ * + *

+ * 详情见: http://redkale.org + * * @author zhangjx */ @Target({FIELD}) @@ -22,7 +33,7 @@ public @interface DistributeGenerator { /** * 如果allocationSize的值小于或等于1,则主键不会加上nodeid - * + * * @return allocationSize */ int allocationSize() default 1000;