shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-distsql/shardingsphere-shadow-distsql-handler/src/main/java/org/apache/shardingsphere/shadow/distsql/handler/converter/ShadowRuleStatementConverter.java
/**
     * Convert shadow rule segments to shadow rule configuration.
     *
     * @param rules shadow rule statements
     * @return shadow rule configuration
     */
Convert shadow rule segments to shadow rule configuration.
@param rules shadow rule statements
@return shadow rule configuration
Convert shadow rule segments to shadow rule configuration . @param rules shadow rule statements @return shadow rule configuration
public static ShadowRuleConfiguration convert(final Collection<ShadowRuleSegment> rules) {
        ShadowRuleConfiguration shadowRuleConfiguration = new ShadowRuleConfiguration();
        shadowRuleConfiguration.setShadowAlgorithms(getShadowAlgorithms(rules));
        shadowRuleConfiguration.setDataSources(getDataSource(rules));
        shadowRuleConfiguration.setTables(getTables(rules));
        return shadowRuleConfiguration;
    }
public static ShadowRuleConfiguration convert ( final Collection < ShadowRuleSegment > rules ) { ShadowRuleConfiguration shadowRuleConfiguration = new ShadowRuleConfiguration ( ) ; shadowRuleConfiguration . setShadowAlgorithms ( getShadowAlgorithms ( rules ) ) ; shadowRuleConfiguration . setDataSources ( getDataSource ( rules ) ) ; shadowRuleConfiguration . setTables ( getTables ( rules ) ) ; return shadowRuleConfiguration ; }
Convert shadow rule segments to shadow rule configuration.
Convert shadow rule segments to shadow rule configuration .
// FIXME because the defined final attribute will be removed, here is just for the new object