Class CreateDefaultShadowAlgorithmStatementUpdater
java.lang.Object
org.apache.shardingsphere.shadow.distsql.handler.update.CreateDefaultShadowAlgorithmStatementUpdater
- All Implemented Interfaces:
org.apache.shardingsphere.infra.distsql.update.RuleDefinitionCreateUpdater<CreateDefaultShadowAlgorithmStatement,,ShadowRuleConfiguration> org.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<CreateDefaultShadowAlgorithmStatement,,ShadowRuleConfiguration> org.apache.shardingsphere.spi.type.typed.TypedSPI
public final class CreateDefaultShadowAlgorithmStatementUpdater
extends Object
implements org.apache.shardingsphere.infra.distsql.update.RuleDefinitionCreateUpdater<CreateDefaultShadowAlgorithmStatement,ShadowRuleConfiguration>
Create default shadow algorithm statement updater.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.shardingsphere.infra.config.RuleConfigurationvoidcheckSQLStatement(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, CreateDefaultShadowAlgorithmStatement sqlStatement, ShadowRuleConfiguration currentRuleConfig) getType()voidupdateCurrentRuleConfiguration(ShadowRuleConfiguration currentRuleConfig, ShadowRuleConfiguration toBeCreatedRuleConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.spi.type.typed.TypedSPI
getTypeAliases
-
Constructor Details
-
CreateDefaultShadowAlgorithmStatementUpdater
public CreateDefaultShadowAlgorithmStatementUpdater()
-
-
Method Details
-
buildToBeCreatedRuleConfiguration
public org.apache.shardingsphere.infra.config.RuleConfiguration buildToBeCreatedRuleConfiguration(CreateDefaultShadowAlgorithmStatement sqlStatement) - Specified by:
buildToBeCreatedRuleConfigurationin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionCreateUpdater<CreateDefaultShadowAlgorithmStatement,ShadowRuleConfiguration>
-
updateCurrentRuleConfiguration
public void updateCurrentRuleConfiguration(ShadowRuleConfiguration currentRuleConfig, ShadowRuleConfiguration toBeCreatedRuleConfig) - Specified by:
updateCurrentRuleConfigurationin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionCreateUpdater<CreateDefaultShadowAlgorithmStatement,ShadowRuleConfiguration>
-
checkSQLStatement
public void checkSQLStatement(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, CreateDefaultShadowAlgorithmStatement sqlStatement, ShadowRuleConfiguration currentRuleConfig) throws org.apache.shardingsphere.infra.distsql.exception.DistSQLException - Specified by:
checkSQLStatementin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<CreateDefaultShadowAlgorithmStatement,ShadowRuleConfiguration> - Throws:
org.apache.shardingsphere.infra.distsql.exception.DistSQLException
-
getRuleConfigurationClass
- Specified by:
getRuleConfigurationClassin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<CreateDefaultShadowAlgorithmStatement,ShadowRuleConfiguration>
-
getType
- Specified by:
getTypein interfaceorg.apache.shardingsphere.spi.type.typed.TypedSPI
-