public final class ReadwriteSplittingSQLRouter extends Object implements SQLRouter<ReadwriteSplittingRule>
| 构造器和说明 |
|---|
ReadwriteSplittingSQLRouter() |
| 限定符和类型 | 方法和说明 |
|---|---|
RouteContext |
createRouteContext(org.apache.shardingsphere.infra.binder.QueryContext queryContext,
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database,
ReadwriteSplittingRule rule,
org.apache.shardingsphere.infra.config.props.ConfigurationProperties props,
org.apache.shardingsphere.infra.context.ConnectionContext connectionContext) |
void |
decorateRouteContext(RouteContext routeContext,
org.apache.shardingsphere.infra.binder.QueryContext queryContext,
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database,
ReadwriteSplittingRule rule,
org.apache.shardingsphere.infra.config.props.ConfigurationProperties props,
org.apache.shardingsphere.infra.context.ConnectionContext connectionContext) |
int |
getOrder() |
Class<ReadwriteSplittingRule> |
getTypeClass() |
public RouteContext createRouteContext(org.apache.shardingsphere.infra.binder.QueryContext queryContext, org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, ReadwriteSplittingRule rule, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props, org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
createRouteContext 在接口中 SQLRouter<ReadwriteSplittingRule>public void decorateRouteContext(RouteContext routeContext, org.apache.shardingsphere.infra.binder.QueryContext queryContext, org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, ReadwriteSplittingRule rule, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props, org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
decorateRouteContext 在接口中 SQLRouter<ReadwriteSplittingRule>public int getOrder()
getOrder 在接口中 org.apache.shardingsphere.infra.util.spi.type.ordered.OrderedSPI<ReadwriteSplittingRule>public Class<ReadwriteSplittingRule> getTypeClass()
getTypeClass 在接口中 org.apache.shardingsphere.infra.util.spi.type.ordered.OrderedSPI<ReadwriteSplittingRule>Copyright © 2022 The Apache Software Foundation. All rights reserved.