shardingsphere-infra/shardingsphere-infra-executor/src/main/java/org/apache/shardingsphere/infra/executor/sql/federate/original/sql/RouteContextFilter.java
/**
     * Filter route context.
     * 
     * @param toBeKeptTableName to be kept table name
     * @param routeContext route context
     * @return filtered route context
     */
Filter route context.

@param toBeKeptTableName to be kept table name
@param routeContext route context
@return filtered route context
Filter route context . @param toBeKeptTableName to be kept table name @param routeContext route context @return filtered route context
public RouteContext filter(final String toBeKeptTableName, final RouteContext routeContext) {
        RouteContext result = new RouteContext();
        result.getRouteUnits().addAll(filterRouteUnits(toBeKeptTableName, routeContext));
        return result;
    }
public RouteContext filter ( final String toBeKeptTableName , final RouteContext routeContext ) { RouteContext result = new RouteContext ( ) ; result . getRouteUnits ( ) . addAll ( filterRouteUnits ( toBeKeptTableName , routeContext ) ) ; return result ; }
Filter route context.
Filter route context .