T - type of SQL statementR - type of rule configurationpublic interface RuleDefinitionDropUpdater<T extends org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement,R extends RuleConfiguration> extends RuleDefinitionUpdater<T,R>
| 限定符和类型 | 方法和说明 |
|---|---|
default Collection<String> |
getIdenticalData(Collection<String> currentRules,
Collection<String> toBeDroppedRules)
Get identical data.
|
default boolean |
hasAnyOneToBeDropped(T sqlStatement,
R currentRuleConfig)
Whether there is dropped data.
|
default boolean |
isExistRuleConfig(R currentRuleConfig)
Whether there is configuration.
|
boolean |
updateCurrentRuleConfiguration(T sqlStatement,
R currentRuleConfig)
Update current rule configuration.
|
checkSQLStatement, getRuleConfigurationClassgetType, getTypeAliasesboolean updateCurrentRuleConfiguration(T sqlStatement, R currentRuleConfig)
sqlStatement - SQL statementcurrentRuleConfig - current rule configuration to be updateddefault boolean isExistRuleConfig(R currentRuleConfig)
currentRuleConfig - current rule configurationdefault boolean hasAnyOneToBeDropped(T sqlStatement, R currentRuleConfig)
sqlStatement - SQL statementcurrentRuleConfig - current rule configurationdefault Collection<String> getIdenticalData(Collection<String> currentRules, Collection<String> toBeDroppedRules)
currentRules - collectiontoBeDroppedRules - collectionCopyright © 2022 The Apache Software Foundation. All rights reserved.