Class CosIdKeyGenerateAlgorithm

java.lang.Object
org.apache.shardingsphere.sharding.cosid.algorithm.keygen.CosIdKeyGenerateAlgorithm
All Implemented Interfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI, KeyGenerateAlgorithm

public final class CosIdKeyGenerateAlgorithm extends Object implements KeyGenerateAlgorithm
CosId key generate algorithm.
  • Constructor Details

    • CosIdKeyGenerateAlgorithm

      public CosIdKeyGenerateAlgorithm()
  • Method Details

    • init

      public void init(Properties props)
      Specified by:
      init in interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI
    • generateKey

      public Comparable<?> generateKey()
      Specified by:
      generateKey in interface KeyGenerateAlgorithm
    • getType

      public String getType()
      Specified by:
      getType in interface org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI