public void combineSets(HashMap<String,Set<String>> containerAffinities,OperatorPair pair){
  Set<String> set1=containerAffinities.get(pair.first);
  Set<String> set2=containerAffinities.get(pair.second);
  set1.addAll(set2);
  containerAffinities.put(pair.first,set1);
  containerAffinities.put(pair.second,set1);
}

public void combineSets ( HashMap < String , Set < String > > containerAffinities , OperatorPair pair ) { Set < String > set1 = containerAffinities . get ( pair . first ) ; Set < String > set2 = containerAffinities . get ( pair . second ) ; set1 . addAll ( set2 ) ; containerAffinities . put ( pair . first , set1 ) ; containerAffinities . put ( pair . second , set1 ) ; }
combine affinity sets for operators with affinity
