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

Method get

src/java/org/apache/nutch/util/ObjectCache.java:40–49  ·  view source on GitHub ↗
(Configuration conf)

Source from the content-addressed store, hash-verified

38 }
39
40 public static ObjectCache get(Configuration conf) {
41 ObjectCache objectCache = CACHE.get(conf);
42 if (objectCache == null) {
43 LOG.debug("No object cache found for conf=" + conf
44 + ", instantiating a new object cache");
45 objectCache = new ObjectCache();
46 CACHE.put(conf, objectCache);
47 }
48 return objectCache;
49 }
50
51 public Object getObject(String key) {
52 return objectMap.get(key);

Callers 15

getInstanceMethod · 0.95
getInstanceMethod · 0.95
getInstanceMethod · 0.95
getCollectionManagerMethod · 0.95
testGetProtocolMethod · 0.95
getProtocolMethod · 0.95
IndexWritersMethod · 0.95
IndexingFiltersMethod · 0.95
IndexCleaningFiltersMethod · 0.95
ParserFactoryMethod · 0.95
getParsersMethod · 0.95
getParserByIdMethod · 0.95

Calls 2

getMethod · 0.65
putMethod · 0.45

Tested by 1

testGetProtocolMethod · 0.76