public SQLRouteResult shard(final String sql, final List<Object> parameters) {
        List<Object> clonedParameters = cloneParameters(parameters);
        SQLRouteResult result = executeRoute(sql, clonedParameters);
        result.getRouteUnits().addAll(HintManager.isDatabaseShardingOnly() ? convert(sql, clonedParameters, result) : rewriteAndConvert(sql, clonedParameters, result));
        if (shardingProperties.getValue(ShardingPropertiesConstant.SQL_SHOW)) {
            boolean showSimple = shardingProperties.getValue(ShardingPropertiesConstant.SQL_SIMPLE);
            SQLLogger.logSQL(sql, showSimple, result.getSqlStatement(), result.getRouteUnits());
        }
        return result;
    }
public SQLRouteResult shard ( final String sql , final List < Object > parameters ) { List < Object > clonedParameters = cloneParameters ( parameters ) ; SQLRouteResult result = executeRoute ( sql , clonedParameters ) ; result . getRouteUnits ( ) . addAll ( HintManager . isDatabaseShardingOnly ( ) ? convert ( sql , clonedParameters , result ) : rewriteAndConvert ( sql , clonedParameters , result ) ) ; if ( shardingProperties . getValue ( ShardingPropertiesConstant . SQL_SHOW ) ) { boolean showSimple = shardingProperties . getValue ( ShardingPropertiesConstant . SQL_SIMPLE ) ; SQLLogger . logSQL ( sql , showSimple , result . getSqlStatement ( ) , result . getRouteUnits ( ) ) ; } return result ; }
Shard.

@param sql SQL
@param parameters parameters of SQL
@return SQL route result