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

Method putAttribute

libminifi/src/core/ProcessSession.cpp:186–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void ProcessSession::putAttribute(const std::shared_ptr<core::FlowFile> &flow, std::string key, std::string value) {
187 flow->setAttribute(key, value);
188 std::stringstream details;
189 details << process_context_->getProcessorNode()->getName() << " modify flow record " << flow->getUUIDStr() << " attribute " << key << ":" << value;
190 provenance_report_->modifyAttributes(flow, details.str());
191}
192
193void ProcessSession::removeAttribute(const std::shared_ptr<core::FlowFile> &flow, std::string key) {
194 flow->removeAttribute(key);

Callers

nothing calls this directly

Calls 5

getProcessorNodeMethod · 0.80
setAttributeMethod · 0.45
getNameMethod · 0.45
getUUIDStrMethod · 0.45
modifyAttributesMethod · 0.45

Tested by

no test coverage detected