public enum ShardingStrategyType extends Enum<ShardingStrategyType>
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contain(String name)
Determine whether the specified type is included.
|
abstract ShardingStrategyConfiguration |
createConfiguration(String shardingAlgorithmName,
String shardingColumn)
Get the sharding strategy configuration.
|
abstract Collection<String> |
getConfigurationContents(ShardingStrategyConfiguration strategyConfiguration)
Get the content in the configuration.
|
abstract Class<? extends ShardingStrategyConfiguration> |
getImplementedClass()
Get the class that implements the strategy.
|
static ShardingStrategyType |
getValueOf(ShardingStrategyConfiguration shardingStrategyConfiguration)
Returns the sharding strategy type.
|
static ShardingStrategyType |
getValueOf(String name)
Returns the sharding strategy type.
|
abstract boolean |
isValid(String shardingColumn)
Check whether the configuration is valid.
|
static ShardingStrategyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShardingStrategyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShardingStrategyType STANDARD
public static final ShardingStrategyType NONE
public static final ShardingStrategyType HINT
public static final ShardingStrategyType COMPLEX
public static ShardingStrategyType[] values()
for (ShardingStrategyType c : ShardingStrategyType.values()) System.out.println(c);
public static ShardingStrategyType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract ShardingStrategyConfiguration createConfiguration(String shardingAlgorithmName, String shardingColumn)
shardingAlgorithmName - sharding algorithm nameshardingColumn - sharding columnpublic abstract Class<? extends ShardingStrategyConfiguration> getImplementedClass()
public abstract Collection<String> getConfigurationContents(ShardingStrategyConfiguration strategyConfiguration)
strategyConfiguration - sharding strategy configuration.public abstract boolean isValid(String shardingColumn)
shardingColumn - sharding columnpublic static ShardingStrategyType getValueOf(String name)
name - namepublic static ShardingStrategyType getValueOf(ShardingStrategyConfiguration shardingStrategyConfiguration)
shardingStrategyConfiguration - Implementation class of sharding strategy configurationpublic static boolean contain(String name)
name - nameCopyright © 2022 The Apache Software Foundation. All rights reserved.