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

Method addAttribute

libminifi/src/core/FlowFile.cpp:184–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184bool FlowFile::addAttribute(const std::string& key, const std::string& value) {
185 auto it = attributes_.find(key);
186 if (it != attributes_.end()) {
187 // attribute already there in the map
188 return false;
189 } else {
190 attributes_[key] = value;
191 return true;
192 }
193}
194
195void FlowFile::setLineageStartDate(const uint64_t date) {
196 lineage_start_date_ = date;

Callers 6

transmit_flowfileFunction · 0.45
MergeFileTests.cppFile · 0.45
RepoTests.cppFile · 0.45
receiveFlowFilesMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected