Class PartialSQLRouteExecutor
java.lang.Object
org.apache.shardingsphere.infra.route.engine.impl.PartialSQLRouteExecutor
- All Implemented Interfaces:
SQLRouteExecutor
Partial SQL route executor.
-
Constructor Summary
ConstructorsConstructorDescriptionPartialSQLRouteExecutor(Collection<org.apache.shardingsphere.infra.rule.ShardingSphereRule> rules, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props) -
Method Summary
Modifier and TypeMethodDescriptionroute(org.apache.shardingsphere.infra.context.ConnectionContext connectionContext, QueryContext queryContext, org.apache.shardingsphere.infra.metadata.database.rule.ShardingSphereRuleMetaData globalRuleMetaData, org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database) Route.
-
Constructor Details
-
PartialSQLRouteExecutor
public PartialSQLRouteExecutor(Collection<org.apache.shardingsphere.infra.rule.ShardingSphereRule> rules, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props)
-
-
Method Details
-
route
public RouteContext route(org.apache.shardingsphere.infra.context.ConnectionContext connectionContext, QueryContext queryContext, org.apache.shardingsphere.infra.metadata.database.rule.ShardingSphereRuleMetaData globalRuleMetaData, org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database) Description copied from interface:SQLRouteExecutorRoute.- Specified by:
routein interfaceSQLRouteExecutor- Parameters:
connectionContext- connection contextqueryContext- query contextglobalRuleMetaData- global rule meta datadatabase- database- Returns:
- route context
-