public long [ ] getSitesForPartitionsAsArray ( int [ ] partitions ) { ArrayList < Long > all_sites = new ArrayList < Long > ( ) ; for ( int p : partitions ) { List < Long > sites = getSitesForPartition ( p ) ; for ( long site : sites ) { all_sites . add ( site ) ; } } return longListToArray ( all_sites ) ; }
Get the ids of all live sites that contain a copy of ANY of the given partitions .