test_class.file: shardingsphere-infra/shardingsphere-infra-common/src/test/java/org/apache/shardingsphere/infra/metadata/datasource/DataSourcesMetaDataTest.java
test_class.identifier: DataSourcesMetaDataTest
test_case.body: @Test
      public void assertGetActualCatalogForShardingRule() {
          Map<String, DatabaseAccessConfiguration> databaseAccessConfigurationMap = new HashMap<>(2, 1);
          databaseAccessConfigurationMap.put("ds_0", new DatabaseAccessConfiguration("jdbc:mysql://127.0.0.1:3306/db_0", "test"));
          databaseAccessConfigurationMap.put("ds_1", new DatabaseAccessConfiguration("jdbc:mysql://127.0.0.1:3306/db_1", "test"));
          DataSourcesMetaData dataSourcesMetaData = new DataSourcesMetaData(DatabaseTypes.getActualDatabaseType("MySQL"), databaseAccessConfigurationMap);
          assertThat(dataSourcesMetaData.getDataSourceMetaData("ds_0").getCatalog(), is("db_0"));
      }
test_case.class_method_signature: DataSourcesMetaDataTest.assertGetActualCatalogForShardingRule()
test_case.full_signature: @Test public void assertGetActualCatalogForShardingRule()
test_case.identifier: assertGetActualCatalogForShardingRule
test_case.invocations: put put getActualDatabaseType assertThat getCatalog getDataSourceMetaData is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertGetActualCatalogForShardingRule()
focal_class.declarator: dataSourceMetaDataMap
focal_class.modifier: private final
focal_class.original_string: private final Map<String, DataSourceMetaData> dataSourceMetaDataMap;
focal_class.type: Map<String, DataSourceMetaData>
focal_class.var_name: dataSourceMetaDataMap
focal_class.file: shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/datasource/DataSourcesMetaData.java
focal_class.identifier: DataSourcesMetaData
focal_class.class_method_signature: DataSourcesMetaData.DataSourcesMetaData(final DatabaseType databaseType, final Map<String, DatabaseAccessConfiguration> databaseAccessConfigMap)
focal_class.full_signature: public  DataSourcesMetaData(final DatabaseType databaseType, final Map<String, DatabaseAccessConfiguration> databaseAccessConfigMap)
focal_class.identifier: DataSourcesMetaData
focal_class.modifiers: public
focal_class.parameters: (final DatabaseType databaseType, final Map<String, DatabaseAccessConfiguration> databaseAccessConfigMap)
focal_class.signature:  DataSourcesMetaData(final DatabaseType databaseType, final Map<String, DatabaseAccessConfiguration> databaseAccessConfigMap)
focal_class.class_method_signature: DataSourcesMetaData.getDataSourceMetaDataMap(final DatabaseType databaseType, final Map<String, DatabaseAccessConfiguration> databaseAccessConfigMap)
focal_class.full_signature: private Map<String, DataSourceMetaData> getDataSourceMetaDataMap(final DatabaseType databaseType, final Map<String, DatabaseAccessConfiguration> databaseAccessConfigMap)
focal_class.identifier: getDataSourceMetaDataMap
focal_class.modifiers: private
focal_class.parameters: (final DatabaseType databaseType, final Map<String, DatabaseAccessConfiguration> databaseAccessConfigMap)
focal_class.return: Map<String, DataSourceMetaData>
focal_class.signature: Map<String, DataSourceMetaData> getDataSourceMetaDataMap(final DatabaseType databaseType, final Map<String, DatabaseAccessConfiguration> databaseAccessConfigMap)
focal_class.class_method_signature: DataSourcesMetaData.getAllInstanceDataSourceNames()
focal_class.full_signature: public Collection<String> getAllInstanceDataSourceNames()
focal_class.identifier: getAllInstanceDataSourceNames
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Collection<String>
focal_class.signature: Collection<String> getAllInstanceDataSourceNames()
focal_class.class_method_signature: DataSourcesMetaData.isExisted(final String dataSourceName, final Collection<String> existedDataSourceNames)
focal_class.full_signature: private boolean isExisted(final String dataSourceName, final Collection<String> existedDataSourceNames)
focal_class.identifier: isExisted
focal_class.modifiers: private
focal_class.parameters: (final String dataSourceName, final Collection<String> existedDataSourceNames)
focal_class.return: boolean
focal_class.signature: boolean isExisted(final String dataSourceName, final Collection<String> existedDataSourceNames)
focal_class.class_method_signature: DataSourcesMetaData.isInSameDatabaseInstance(final DataSourceMetaData sample, final DataSourceMetaData target)
focal_class.full_signature: private boolean isInSameDatabaseInstance(final DataSourceMetaData sample, final DataSourceMetaData target)
focal_class.identifier: isInSameDatabaseInstance
focal_class.modifiers: private
focal_class.parameters: (final DataSourceMetaData sample, final DataSourceMetaData target)
focal_class.return: boolean
focal_class.signature: boolean isInSameDatabaseInstance(final DataSourceMetaData sample, final DataSourceMetaData target)
focal_class.class_method_signature: DataSourcesMetaData.getDataSourceMetaData(final String dataSourceName)
focal_class.full_signature: public DataSourceMetaData getDataSourceMetaData(final String dataSourceName)
focal_class.identifier: getDataSourceMetaData
focal_class.modifiers: public
focal_class.parameters: (final String dataSourceName)
focal_class.return: DataSourceMetaData
focal_class.signature: DataSourceMetaData getDataSourceMetaData(final String dataSourceName)
focal_method.body: public DataSourceMetaData getDataSourceMetaData(final String dataSourceName) {
          return dataSourceMetaDataMap.get(dataSourceName);
      }
focal_method.class_method_signature: DataSourcesMetaData.getDataSourceMetaData(final String dataSourceName)
focal_method.full_signature: public DataSourceMetaData getDataSourceMetaData(final String dataSourceName)
focal_method.identifier: getDataSourceMetaData
focal_method.invocations: get
focal_method.modifiers: public
focal_method.parameters: (final String dataSourceName)
focal_method.return: DataSourceMetaData
focal_method.signature: DataSourceMetaData getDataSourceMetaData(final String dataSourceName)