protected static < I , D > void fetchResults ( Iterator < DefaultQuery < I , D > > queryIt , List < D > output , int numSuffixes ) { for ( int j = 0 ; j < numSuffixes ; j ++ ) { DefaultQuery < I , D > qry = queryIt . next ( ) ; output . add ( qry . getOutput ( ) ) ; } }
Fetches the given number of query responses and adds them to the specified output list . Also the query iterator is advanced accordingly .