MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / updateAttribute

Method updateAttribute

libminifi/src/core/FlowFile.cpp:174–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174bool FlowFile::updateAttribute(const std::string key, const std::string value) {
175 auto it = attributes_.find(key);
176 if (it != attributes_.end()) {
177 it->second = value;
178 return true;
179 } else {
180 return false;
181 }
182}
183
184bool FlowFile::addAttribute(const std::string& key, const std::string& value) {
185 auto it = attributes_.find(key);

Callers 1

RepoTests.cppFile · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected