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

Method getInt

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

Source from the content-addressed store, hash-verified

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
371 public int getInt(String key, int defaultValue) {
372 if (!contains(key))
373 return defaultValue;
374 return Integer.parseInt(getValue(key, null));
375 }
376
377 // TODO NUTCH-1709 Generated classes o.a.n.storage.Host and
378 // o.a.n.storage.ProtocolStatus contain methods not defined in source .avsc

Callers 15

getFetchItemQueueMethod · 0.95
setConfMethod · 0.80
openMethod · 0.80
setConfMethod · 0.80
setConfMethod · 0.80
openMethod · 0.80
setConfMethod · 0.80
openMethod · 0.80
setConfMethod · 0.80
setUpMethod · 0.80
setConfMethod · 0.80
setConfMethod · 0.80

Calls 2

containsMethod · 0.95
getValueMethod · 0.95

Tested by 3

setUpMethod · 0.64
setUpMethod · 0.64
mainMethod · 0.64