}
private void collectResults(Set<Integer> plist, QueryResultSet result, List<Future> futures)
throws InterruptedException, java.util.concurrent.ExecutionException {
for (Future future : futures) {
QueryResult queryResult = (QueryResult) future.get();
if (queryResult != null) {
final Collection<Integer> partitionIds = queryResult.getPartitionIds();
if (partitionIds != null) {
plist.addAll(partitionIds);
result.addAll(queryResult.getResult());
}
}
}
}