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

Method get

storm-client/src/jvm/org/apache/storm/utils/RotatingMap.java:78–85  ·  view source on GitHub ↗
(K key)

Source from the content-addressed store, hash-verified

76 }
77
78 public V get(K key) {
79 for (HashMap<K, V> bucket : buckets) {
80 if (bucket.containsKey(key)) {
81 return bucket.get(key);
82 }
83 }
84 return null;
85 }
86
87 public void put(K key, V value) {
88 Iterator<HashMap<K, V>> it = buckets.iterator();

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
containsKeyMethod · 0.45

Tested by

no test coverage detected