T - type of rulepublic interface SQLRouter<T extends org.apache.shardingsphere.infra.rule.ShardingSphereRule>
extends org.apache.shardingsphere.infra.util.spi.type.ordered.OrderedSPI<T>
| 限定符和类型 | 方法和说明 |
|---|---|
RouteContext |
createRouteContext(QueryContext queryContext,
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database,
T rule,
org.apache.shardingsphere.infra.config.props.ConfigurationProperties props,
org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
Create route context.
|
void |
decorateRouteContext(RouteContext routeContext,
QueryContext queryContext,
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database,
T rule,
org.apache.shardingsphere.infra.config.props.ConfigurationProperties props,
org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
Decorate route context.
|
RouteContext createRouteContext(QueryContext queryContext, org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, T rule, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props, org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
queryContext - query contextdatabase - databaserule - ruleprops - configuration propertiesconnectionContext - connection contextvoid decorateRouteContext(RouteContext routeContext, QueryContext queryContext, org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, T rule, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props, org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
routeContext - route contextqueryContext - query contextdatabase - databaserule - ruleprops - configuration propertiesconnectionContext - connection contextCopyright © 2022 The Apache Software Foundation. All rights reserved.