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

Method setAttribute

libminifi/include/core/FlowFile.h:158–160  ·  view source on GitHub ↗

* setAttribute, if attribute already there, update it, else, add it */

Source from the content-addressed store, hash-verified

156 * setAttribute, if attribute already there, update it, else, add it
157 */
158 bool setAttribute(const std::string& key, const std::string& value) {
159 return attributes_.insert_or_assign(key, value).second;
160 }
161
162 /**
163 * Returns the map of attributes

Callers 8

onTriggerFunction · 0.45
MergeFileTests.cppFile · 0.45
createMethod · 0.45
cloneDuringTransferMethod · 0.45
putAttributeMethod · 0.45
getMethod · 0.45

Calls 1

insert_or_assignMethod · 0.80

Tested by

no test coverage detected