Class ShadowRuleStatementSupporter
java.lang.Object
org.apache.shardingsphere.shadow.distsql.handler.supporter.ShadowRuleStatementSupporter
Shadow rule statement supporter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlgorithmNames(Collection<ShadowRuleSegment> segments) Get the algorithm names from the rules.getAlgorithmNames(ShadowRuleConfiguration ruleConfig) Get the algorithm names from the shadow rule configuration.getResourceNames(Collection<ShadowRuleSegment> segments) Get the resource names from the rules.getRuleNames(Collection<ShadowRuleSegment> segments) Get rule names from the rules.getRuleNames(ShadowRuleConfiguration ruleConfig) Get rule names from the shadow rule configuration.static List<ShadowAlgorithmSegment>getShadowAlgorithmSegment(Collection<ShadowRuleSegment> segments) Get the algorithm segments from the rules.getTableNames(Collection<ShadowRuleSegment> segments) Get the table names from the rules.getTableNames(ShadowRuleConfiguration ruleConfig) Get table names from the shadow rule configuration.static ShadowTableConfigurationmergeConfiguration(ShadowTableConfiguration existingTableConfig, ShadowTableConfiguration newTableConfig) Merge configuration.
-
Constructor Details
-
ShadowRuleStatementSupporter
public ShadowRuleStatementSupporter()
-
-
Method Details
-
getRuleNames
Get rule names from the shadow rule configuration.- Parameters:
ruleConfig- shadow rule configuration- Returns:
- rule names
-
getRuleNames
Get rule names from the rules.- Parameters:
segments- shadow rule segments- Returns:
- rule names
-
getTableNames
Get table names from the shadow rule configuration.- Parameters:
ruleConfig- shadow rule configuration- Returns:
- table names
-
getTableNames
Get the table names from the rules.- Parameters:
segments- shadow rule segments- Returns:
- table names
-
getResourceNames
Get the resource names from the rules.- Parameters:
segments- shadow rule segments- Returns:
- resource names
-
getAlgorithmNames
Get the algorithm names from the shadow rule configuration.- Parameters:
ruleConfig- shadow rule configuration- Returns:
- algorithm names
-
getAlgorithmNames
Get the algorithm names from the rules.- Parameters:
segments- shadow rule segments- Returns:
- algorithm names
-
getShadowAlgorithmSegment
public static List<ShadowAlgorithmSegment> getShadowAlgorithmSegment(Collection<ShadowRuleSegment> segments) Get the algorithm segments from the rules.- Parameters:
segments- shadow rule segments- Returns:
- algorithm segments
-
mergeConfiguration
public static ShadowTableConfiguration mergeConfiguration(ShadowTableConfiguration existingTableConfig, ShadowTableConfiguration newTableConfig) Merge configuration.- Parameters:
existingTableConfig- existing shadow table configurationnewTableConfig- new shadow table configuration- Returns:
- shadow table configuration
-