@ThreadSafe
public class CosIdKeyGenerateAlgorithm
extends java.lang.Object
implements org.apache.shardingsphere.spi.typed.TypedSPI, org.apache.shardingsphere.infra.config.algorithm.ShardingSphereAlgorithmPostProcessor, org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AS_STRING_KEY |
protected me.ahoo.cosid.provider.LazyIdGenerator |
lazyIdGenerator |
static java.lang.String |
TYPE |
| Constructor and Description |
|---|
CosIdKeyGenerateAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Comparable<?> |
generateKey() |
java.util.Properties |
getProps() |
java.lang.String |
getType() |
void |
init() |
void |
setProps(java.util.Properties props) |
public static final java.lang.String TYPE
public static final java.lang.String AS_STRING_KEY
protected volatile me.ahoo.cosid.provider.LazyIdGenerator lazyIdGenerator
public java.util.Properties getProps()
getProps in interface org.apache.shardingsphere.spi.typed.TypedSPIpublic void setProps(java.util.Properties props)
setProps in interface org.apache.shardingsphere.spi.typed.TypedSPIpublic void init()
init in interface org.apache.shardingsphere.infra.config.algorithm.ShardingSphereAlgorithmPostProcessorpublic java.lang.String getType()
getType in interface org.apache.shardingsphere.spi.typed.TypedSPIpublic java.lang.Comparable<?> generateKey()
generateKey in interface org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm