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

Method removeAttribute

libminifi/src/core/FlowFile.cpp:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164bool FlowFile::removeAttribute(const std::string key) {
165 auto it = attributes_.find(key);
166 if (it != attributes_.end()) {
167 attributes_.erase(it);
168 return true;
169 } else {
170 return false;
171 }
172}
173
174bool FlowFile::updateAttribute(const std::string key, const std::string value) {
175 auto it = attributes_.find(key);

Callers 2

MergeFileTests.cppFile · 0.45
createEmptyFlowFileFunction · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by 1

createEmptyFlowFileFunction · 0.36