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

Method reverseKey

src/java/org/apache/nutch/api/impl/db/DbReader.java:72–82  ·  view source on GitHub ↗
(String key)

Source from the content-addressed store, hash-verified

70 }
71
72 private String reverseKey(String key) {
73 if (StringUtils.isEmpty(key)) {
74 return null;
75 }
76
77 try {
78 return TableUtil.reverseUrl(key);
79 } catch (MalformedURLException e) {
80 throw new IllegalArgumentException("Wrong url format!", e);
81 }
82 }
83
84 private String[] prepareFields(Set<String> fields) {
85 if (CollectionUtils.isEmpty(fields)) {

Callers 1

runQueryMethod · 0.95

Calls 2

reverseUrlMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected