public Map < String , Set < String > > getDataSourceLogicTablesMap ( final Collection < String > dataSourceNames ) { Map < String , Set < String > > result = new HashMap <> ( ) ; for ( String each : dataSourceNames ) { Set < String > logicTableNames = getLogicTableNames ( each ) ; if ( ! logicTableNames . isEmpty ( ) ) { result . put ( each , logicTableNames ) ; } } return result ; }
Get map relationship between data source and logic tables via data sources names .