Class CosIdKeyGenerateAlgorithm
- java.lang.Object
-
- org.apache.shardingsphere.sharding.cosid.algorithm.keygen.CosIdKeyGenerateAlgorithm
-
- All Implemented Interfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.algorithm.ShardingSphereAlgorithm,org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI,KeyGenerateAlgorithm
public final class CosIdKeyGenerateAlgorithm extends Object implements KeyGenerateAlgorithm
CosId key generate algorithm.
-
-
Constructor Summary
Constructors Constructor Description CosIdKeyGenerateAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparable<?>generateKey()StringgetType()voidinit(Properties props)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm
isSupportAutoIncrement
-
-
-
-
Method Detail
-
init
public void init(Properties props)
- Specified by:
initin interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-
generateKey
public Comparable<?> generateKey()
- Specified by:
generateKeyin interfaceKeyGenerateAlgorithm
-
getType
public String getType()
- Specified by:
getTypein interfaceorg.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
-
-