MCPcopy Create free account
hub / github.com/apache/solr / join

Method join

solr/core/src/test/org/apache/solr/TestJoin.java:459–470  ·  view source on GitHub ↗
(Collection<Doc> input, Map<Comparable, Set<Comparable>> joinMap)

Source from the content-addressed store, hash-verified

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) {

Callers 2

testRandomJoinMethod · 0.95
buildJoinRequestMethod · 0.45

Calls 2

getMethod · 0.65
addAllMethod · 0.45

Tested by

no test coverage detected