MCPcopy Create free account
hub / github.com/apache/nutch / prepareFields

Method prepareFields

src/java/org/apache/nutch/api/impl/db/DbReader.java:84–90  ·  view source on GitHub ↗
(Set<String> fields)

Source from the content-addressed store, hash-verified

82 }
83
84 private String[] prepareFields(Set<String> fields) {
85 if (CollectionUtils.isEmpty(fields)) {
86 return null;
87 }
88 fields.remove("url");
89 return fields.toArray(new String[fields.size()]);
90 }
91}

Callers 1

runQueryMethod · 0.95

Calls 3

sizeMethod · 0.80
removeMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected