public final class ShadowRule extends Object implements org.apache.shardingsphere.infra.rule.identifier.scope.DatabaseRule, org.apache.shardingsphere.infra.rule.identifier.type.DataSourceContainedRule
| 构造器和说明 |
|---|
ShadowRule(AlgorithmProvidedShadowRuleConfiguration ruleConfig) |
ShadowRule(ShadowRuleConfiguration ruleConfig) |
public ShadowRule(ShadowRuleConfiguration ruleConfig)
public ShadowRule(AlgorithmProvidedShadowRuleConfiguration ruleConfig)
public Optional<ShadowAlgorithm> getDefaultShadowAlgorithm()
public Collection<String> getRelatedShadowTables(Collection<String> tableNames)
tableNames - table namespublic Collection<String> getAllShadowTableNames()
public Collection<HintShadowAlgorithm<Comparable<?>>> getAllHintShadowAlgorithms()
public Collection<HintShadowAlgorithm<Comparable<?>>> getRelatedHintShadowAlgorithms(String tableName)
tableName - table namepublic Collection<ColumnShadowAlgorithm<Comparable<?>>> getRelatedColumnShadowAlgorithms(ShadowOperationType shadowOperationType, String tableName, String shadowColumn)
shadowOperationType - shadow operation typetableName - table nameshadowColumn - shadow columnpublic Collection<String> getRelatedShadowColumnNames(ShadowOperationType shadowOperationType, String tableName)
shadowOperationType - shadow operation typetableName - table namepublic Map<String,String> getRelatedShadowDataSourceMappings(String tableName)
tableName - table namepublic Map<String,String> getAllShadowDataSourceMappings()
public Optional<String> getSourceDataSourceName(String actualDataSourceName)
actualDataSourceName - actual data source namepublic Map<String,Collection<String>> getDataSourceMapper()
getDataSourceMapper 在接口中 org.apache.shardingsphere.infra.rule.identifier.type.DataSourceContainedRulepublic String getType()
getType 在接口中 org.apache.shardingsphere.infra.rule.ShardingSphereRuleCopyright © 2022 The Apache Software Foundation. All rights reserved.