public Map < String , List < DataNode > > getDataNodeGroups ( ) { Map < String , List < DataNode > > result = new LinkedHashMap <> ( actualDataNodes . size ( ) , 1 ) ; for ( DataNode each : actualDataNodes ) { String dataSourceName = each . getDataSourceName ( ) ; if ( ! result . containsKey ( dataSourceName ) ) { result . put ( dataSourceName , new LinkedList < DataNode > ( ) ) ; } result . get ( dataSourceName ) . add ( each ) ; } return result ; }
Get data node groups .