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

Method getValue

src/java/org/apache/nutch/storage/Host.java:363–367  ·  view source on GitHub ↗
(String key, String defaultValue)

Source from the content-addressed store, hash-verified

361 // TODO NUTCH-1709 Generated classes o.a.n.storage.Host and
362 // o.a.n.storage.ProtocolStatus contain methods not defined in source .avsc
363 public String getValue(String key, String defaultValue) {
364 if (!contains(key))
365 return defaultValue;
366 return Bytes.toString(metadata.get(new Utf8(key)));
367 }
368
369 // TODO NUTCH-1709 Generated classes o.a.n.storage.Host and
370 // o.a.n.storage.ProtocolStatus contain methods not defined in source .avsc

Callers 15

getIntMethod · 0.95
getLongMethod · 0.95
writeMethod · 0.45
writeMethod · 0.45
testBasicFieldsMethod · 0.45
startElementMethod · 0.45
HttpResponseMethod · 0.45
filterMethod · 0.45
filterMethod · 0.45
setUpMethod · 0.45
testParseFetchChannelMethod · 0.45
mainMethod · 0.45

Calls 3

containsMethod · 0.95
toStringMethod · 0.95
getMethod · 0.65

Tested by 5

testBasicFieldsMethod · 0.36
setUpMethod · 0.36
testParseFetchChannelMethod · 0.36
testJsoupHtmlParserMethod · 0.36