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

Method getChildren

solr/core/src/java/org/apache/solr/core/PluginInfo.java:234–239  ·  view source on GitHub ↗

Filter children by type @param type The type name. must not be null @return The matching children

(String type)

Source from the content-addressed store, hash-verified

232 * @return The matching children
233 */
234 public List<PluginInfo> getChildren(String type) {
235 if (children.isEmpty()) return children;
236 List<PluginInfo> result = new ArrayList<>();
237 for (PluginInfo child : children) if (type.equals(child.type)) result.add(child);
238 return result;
239 }
240
241 public static final PluginInfo EMPTY_INFO =
242 new PluginInfo("", Map.of(), new NamedList<>(), List.of());

Callers 15

testChildrenMethod · 0.95
getChildMethod · 0.95
initMethod · 0.45
getTrustedKeysMethod · 0.45
nodeToWatchMethod · 0.45
listConfigsMethod · 0.45
copyConfigDirFromZkMethod · 0.45
checkIfIamLeaderMethod · 0.45
joinElectionMethod · 0.45
shrinkIfNeededMethod · 0.45

Calls 3

addMethod · 0.65
isEmptyMethod · 0.45
equalsMethod · 0.45

Tested by 1

testChildrenMethod · 0.76