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