(Collection<Doc> input, Map<Comparable, Set<Comparable>> joinMap)
| 457 | } |
| 458 | |
| 459 | @SuppressWarnings({"rawtypes"}) |
| 460 | Set<Comparable> join(Collection<Doc> input, Map<Comparable, Set<Comparable>> joinMap) { |
| 461 | @SuppressWarnings({"rawtypes"}) |
| 462 | Set<Comparable> ids = new HashSet<>(); |
| 463 | for (Doc doc : input) { |
| 464 | @SuppressWarnings({"rawtypes"}) |
| 465 | Collection<Comparable> output = joinMap.get(doc.id); |
| 466 | if (output == null) continue; |
| 467 | ids.addAll(output); |
| 468 | } |
| 469 | return ids; |
| 470 | } |
| 471 | |
| 472 | private static String buildJoinRequest( |
| 473 | String fromField, String toField, String fromQuery, String... otherLocalParams) { |
no test coverage detected