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

Method next

src/java/org/apache/nutch/api/impl/db/DbIterator.java:88–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 }
87
88 public Map<String, Object> next() {
89 url = result.getKey();
90 page = WebPage.newBuilder(result.get()).build();
91 try {
92 skipNonRelevant();
93 if (!hasNext) {
94 result.close();
95 }
96 } catch (Exception e) {
97 LOG.error("Cannot get next result!", e);
98 hasNext = false;
99 return null;
100 }
101 return pageAsMap(url, page);
102 }
103
104 private Map<String, Object> pageAsMap(String url, WebPage page) {
105 Map<String, Object> result = DbPageConverter

Callers 4

runQueryMethod · 0.45
getAsMapMethod · 0.45
skipNonRelevantMethod · 0.45

Calls 8

newBuilderMethod · 0.95
skipNonRelevantMethod · 0.95
pageAsMapMethod · 0.95
getKeyMethod · 0.80
errorMethod · 0.80
getMethod · 0.65
closeMethod · 0.65
buildMethod · 0.45

Tested by

no test coverage detected