question: private ArrayModifiableDBIDs mergeIDs ( List < ? extends DoubleDBIDList > queryResults , DBIDs ... ids ) { ModifiableDBIDs result = DBIDUtil . newHashSet ( ) ; for ( DBIDs dbids : ids ) { result . addDBIDs ( dbids ) ; } for ( DoubleDBIDList queryResult : queryResults ) { result . addDBIDs ( queryResult ) ; } return DBIDUtil . newArray ( result ) ; }
target:  Merges the ids of the query result with the specified ids.