long function ( String arg0 ) { long loc0 = 0 ; if ( arg0 != null ) { HostAndWeight loc1 = this . hostAndWeights . get ( arg0 ) ; if ( loc1 != null ) { loc0 = loc1 . getWeight ( ) ; } } return loc0 ; }
return the weight for a specific host , that will be the total bytes of all blocks on the host 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 void addWeight concode_elem_sep List<String> getTopHosts 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