java.lang.Object
org.apache.shardingsphere.infra.route.context.RouteUnit

public final class RouteUnit extends Object
Route unit.
  • Constructor Details

    • RouteUnit

      public RouteUnit()
  • Method Details

    • getLogicTableNames

      public Set<String> getLogicTableNames()
      Get logic table names.
      Returns:
      logic table names
    • getActualTableNames

      public Set<String> getActualTableNames(String logicTableName)
      Get actual table names.
      Parameters:
      logicTableName - logic table name
      Returns:
      actual table names
    • findTableMapper

      public Optional<RouteMapper> findTableMapper(String logicDataSourceName, String actualTableName)
      Find table mapper.
      Parameters:
      logicDataSourceName - logic data source name
      actualTableName - actual table name
      Returns:
      table mapper