Ahoo-Wang commented on a change in pull request #15067:
URL: https://github.com/apache/shardingsphere/pull/15067#discussion_r792684685
##########
File path:
shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-core/src/main/java/org/apache/shardingsphere/sharding/algorithm/keygen/CosIdKeyGenerateAlgorithm.java
##########
@@ -20,57 +20,47 @@
import me.ahoo.cosid.CosId;
import me.ahoo.cosid.provider.IdGeneratorProvider;
import me.ahoo.cosid.provider.LazyIdGenerator;
-import
org.apache.shardingsphere.infra.config.algorithm.ShardingSphereInstanceRequiredAlgorithm;
-import org.apache.shardingsphere.infra.instance.InstanceContext;
import
org.apache.shardingsphere.sharding.algorithm.sharding.cosid.CosIdAlgorithm;
import org.apache.shardingsphere.sharding.spi.KeyGenerateAlgorithm;
-import java.util.Optional;
import java.util.Properties;
/**
* CosId key generate algorithm.
*/
-public final class CosIdKeyGenerateAlgorithm implements KeyGenerateAlgorithm,
ShardingSphereInstanceRequiredAlgorithm {
Review comment:
Because the `SegmentId` algorithm and `SegmentChainId` algorithm of
`CosId` do not need to depend on `WorkerId`, so I added
`CosIdSnowflakeKeyGenerateAlgorithm`.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]