shardingsphere-infra/shardingsphere-infra-optimize/src/main/java/org/apache/shardingsphere/infra/optimize/context/parser/OptimizerParserContextFactory.java
/**
     * Create optimizer parser context map.
     *
     * @param metaDataMap meta data map
     * @return created optimizer parser context map
     */
Create optimizer parser context map.
@param metaDataMap meta data map
@return created optimizer parser context map
Create optimizer parser context map . @param metaDataMap meta data map @return created optimizer parser context map
public static Map<String, OptimizerParserContext> create(final Map<String, ShardingSphereMetaData> metaDataMap) {
        Map<String, OptimizerParserContext> result = new HashMap<>();
        for (Entry<String, ShardingSphereMetaData> entry : metaDataMap.entrySet()) {
            DatabaseType databaseType = entry.getValue().getResource().getDatabaseType();
            result.put(entry.getKey(), new OptimizerParserContext(databaseType, createSQLDialectProperties(databaseType)));
        }
        return result;
    }
public static Map < String , OptimizerParserContext > create ( final Map < String , ShardingSphereMetaData > metaDataMap ) { Map < String , OptimizerParserContext > result = new HashMap < > ( ) ; for ( Entry < String , ShardingSphereMetaData > entry : metaDataMap . entrySet ( ) ) { DatabaseType databaseType = entry . getValue ( ) . getResource ( ) . getDatabaseType ( ) ; result . put ( entry . getKey ( ) , new OptimizerParserContext ( databaseType , createSQLDialectProperties ( databaseType ) ) ) ; } return result ; }
Create optimizer parser context map.
Create optimizer parser context map .