Class AlterShadowAlgorithmStatementUpdater
java.lang.Object
org.apache.shardingsphere.shadow.distsql.handler.update.AlterShadowAlgorithmStatementUpdater
- All Implemented Interfaces:
org.apache.shardingsphere.infra.distsql.update.RuleDefinitionAlterUpdater<AlterShadowAlgorithmStatement,,ShadowRuleConfiguration> org.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<AlterShadowAlgorithmStatement,,ShadowRuleConfiguration> org.apache.shardingsphere.spi.type.typed.TypedSPI
public final class AlterShadowAlgorithmStatementUpdater
extends Object
implements org.apache.shardingsphere.infra.distsql.update.RuleDefinitionAlterUpdater<AlterShadowAlgorithmStatement,ShadowRuleConfiguration>
Alter 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, AlterShadowAlgorithmStatement sqlStatement, ShadowRuleConfiguration currentRuleConfig) getType()voidupdateCurrentRuleConfiguration(ShadowRuleConfiguration currentRuleConfig, ShadowRuleConfiguration toBeAlteredRuleConfig) 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
-
AlterShadowAlgorithmStatementUpdater
public AlterShadowAlgorithmStatementUpdater()
-
-
Method Details
-
buildToBeAlteredRuleConfiguration
public org.apache.shardingsphere.infra.config.RuleConfiguration buildToBeAlteredRuleConfiguration(AlterShadowAlgorithmStatement sqlStatement) - Specified by:
buildToBeAlteredRuleConfigurationin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionAlterUpdater<AlterShadowAlgorithmStatement,ShadowRuleConfiguration>
-
updateCurrentRuleConfiguration
public void updateCurrentRuleConfiguration(ShadowRuleConfiguration currentRuleConfig, ShadowRuleConfiguration toBeAlteredRuleConfig) - Specified by:
updateCurrentRuleConfigurationin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionAlterUpdater<AlterShadowAlgorithmStatement,ShadowRuleConfiguration>
-
checkSQLStatement
public void checkSQLStatement(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, AlterShadowAlgorithmStatement sqlStatement, ShadowRuleConfiguration currentRuleConfig) throws org.apache.shardingsphere.infra.distsql.exception.DistSQLException - Specified by:
checkSQLStatementin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<AlterShadowAlgorithmStatement,ShadowRuleConfiguration> - Throws:
org.apache.shardingsphere.infra.distsql.exception.DistSQLException
-
getRuleConfigurationClass
- Specified by:
getRuleConfigurationClassin interfaceorg.apache.shardingsphere.infra.distsql.update.RuleDefinitionUpdater<AlterShadowAlgorithmStatement,ShadowRuleConfiguration>
-
getType
- Specified by:
getTypein interfaceorg.apache.shardingsphere.spi.type.typed.TypedSPI
-