return the sorted list of hosts in terms of their weights concode_field_sep Map<String,HostAndWeight> hostAndWeights concode_elem_sep long uniqueBlocksTotalWeight concode_elem_sep String host concode_elem_sep long weight concode_field_sep Map<String,HostAndWeight> getHostAndWeights concode_elem_sep void add concode_elem_sep int compare concode_elem_sep float getBlockLocalityIndex concode_elem_sep long getWeight concode_elem_sep long getWeight concode_elem_sep void addWeight concode_elem_sep void addHostsAndBlockWeight concode_elem_sep void addUniqueWeight concode_elem_sep void addHostAndBlockWeight concode_elem_sep HostAndWeight[] getTopHostsWithWeights concode_elem_sep long getUniqueBlocksTotalWeight concode_elem_sep String toString concode_elem_sep String getHost
List < String > function ( ) { HostAndWeight [ ] loc0 = getTopHostsWithWeights ( ) ; List < String > loc1 = new ArrayList < String > ( loc0 . length ) ; for ( HostAndWeight loc2 : loc0 ) { loc1 . add ( loc2 . getHost ( ) ) ; } return loc1 ; }