Class CosIdSnowflakeIntervalShardingAlgorithm
- java.lang.Object
-
- org.apache.shardingsphere.sharding.cosid.algorithm.sharding.interval.AbstractCosIdIntervalShardingAlgorithm<Comparable<?>>
-
- org.apache.shardingsphere.sharding.cosid.algorithm.sharding.interval.CosIdSnowflakeIntervalShardingAlgorithm
-
- All Implemented Interfaces:
org.apache.shardingsphere.infra.util.spi.type.typed.algorithm.ShardingSphereAlgorithm,org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI,StandardShardingAlgorithm<Comparable<?>>,ShardingAlgorithm
public final class CosIdSnowflakeIntervalShardingAlgorithm extends AbstractCosIdIntervalShardingAlgorithm<Comparable<?>>
Snowflake interval sharding algorithm with CosId.
-
-
Field Summary
-
Fields inherited from class org.apache.shardingsphere.sharding.cosid.algorithm.sharding.interval.AbstractCosIdIntervalShardingAlgorithm
DATE_TIME_LOWER_KEY, DATE_TIME_UPPER_KEY, DEFAULT_DATE_TIME_FORMATTER, DEFAULT_DATE_TIME_PATTERN, INTERVAL_AMOUNT_KEY, INTERVAL_UNIT_KEY, SHARDING_SUFFIX_FORMAT_KEY
-
-
Constructor Summary
Constructors Constructor Description CosIdSnowflakeIntervalShardingAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected me.ahoo.cosid.sharding.LocalDateTimeConvertorcreateLocalDateTimeConvertor(Properties props)StringgetType()-
Methods inherited from class org.apache.shardingsphere.sharding.cosid.algorithm.sharding.interval.AbstractCosIdIntervalShardingAlgorithm
doSharding, doSharding, init
-
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.ShardingAlgorithm
getAlgorithmStructure
-
-
-
-
Method Detail
-
createLocalDateTimeConvertor
protected me.ahoo.cosid.sharding.LocalDateTimeConvertor createLocalDateTimeConvertor(Properties props)
- Specified by:
createLocalDateTimeConvertorin classAbstractCosIdIntervalShardingAlgorithm<Comparable<?>>
-
getType
public String getType()
-
-