13 StorageIterator storageIterator = findIteratorBy(key);
14 return storageIterator->second;
18 (
unsigned long long secondKey)
20 SecondKeyStorageIterator storageIterator = findIteratorBy(secondKey);
21 return storageIterator->second;
26 SecondKeyStorageIterator storageIterator = findIteratorBy(secondKey);
27 _secondKeyStorage.erase(storageIterator);
31 Poco::SharedPtr<additions::TaskReducersManagerIf> taskReducersManager)
33 _storage.insert(std::make_pair(key, taskReducersManager));
37 Poco::SharedPtr<additions::TaskReducersManagerIf> taskReducersManager)
39 _secondKeyStorage.insert(std::make_pair(secondKey, taskReducersManager));
43 ReduceAdditionsStorage::StorageIterator ReduceAdditionsStorage::findIteratorBy
46 StorageIterator storageIterator = _storage.find(key);
47 if (storageIterator != _storage.end()){
48 return storageIterator;
51 (
"ReduceAdditionsStorage - not found key " +
52 std::to_string(static_cast<int>(key)));
55 ReduceAdditionsStorage::SecondKeyStorageIterator ReduceAdditionsStorage::findIteratorBy
56 (
unsigned long long key)
58 SecondKeyStorageIterator storageIterator = _secondKeyStorage.find(key);
59 if (storageIterator != _secondKeyStorage.end()){
60 return storageIterator;
63 (
"ReduceAdditionsStorage - not found key " + std::to_string(key));