Class CachedShardingSQLRouter

java.lang.Object
org.apache.shardingsphere.sharding.cache.route.CachedShardingSQLRouter
All Implemented Interfaces:
org.apache.shardingsphere.infra.route.SQLRouter<ShardingCacheRule>, org.apache.shardingsphere.infra.util.spi.type.ordered.OrderedSPI<ShardingCacheRule>

public final class CachedShardingSQLRouter extends Object implements org.apache.shardingsphere.infra.route.SQLRouter<ShardingCacheRule>
TODO Design a cache layer interface in kernel. Cached sharding SQL router.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.shardingsphere.infra.route.context.RouteContext
    createRouteContext(org.apache.shardingsphere.infra.binder.QueryContext queryContext, org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, ShardingCacheRule rule, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props, org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
     
    void
    decorateRouteContext(org.apache.shardingsphere.infra.route.context.RouteContext routeContext, org.apache.shardingsphere.infra.binder.QueryContext queryContext, org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, ShardingCacheRule rule, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props, org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CachedShardingSQLRouter

      public CachedShardingSQLRouter()
  • Method Details

    • createRouteContext

      public org.apache.shardingsphere.infra.route.context.RouteContext createRouteContext(org.apache.shardingsphere.infra.binder.QueryContext queryContext, org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, ShardingCacheRule rule, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props, org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
      Specified by:
      createRouteContext in interface org.apache.shardingsphere.infra.route.SQLRouter<ShardingCacheRule>
    • decorateRouteContext

      public void decorateRouteContext(org.apache.shardingsphere.infra.route.context.RouteContext routeContext, org.apache.shardingsphere.infra.binder.QueryContext queryContext, org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database, ShardingCacheRule rule, org.apache.shardingsphere.infra.config.props.ConfigurationProperties props, org.apache.shardingsphere.infra.context.ConnectionContext connectionContext)
      Specified by:
      decorateRouteContext in interface org.apache.shardingsphere.infra.route.SQLRouter<ShardingCacheRule>
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.apache.shardingsphere.infra.util.spi.type.ordered.OrderedSPI<ShardingCacheRule>
    • getTypeClass

      public Class<ShardingCacheRule> getTypeClass()
      Specified by:
      getTypeClass in interface org.apache.shardingsphere.infra.util.spi.type.ordered.OrderedSPI<ShardingCacheRule>