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

Method setStashClaim

libminifi/src/core/FlowFile.cpp:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void FlowFile::setStashClaim(const std::string& key, const std::shared_ptr<ResourceClaim>& claim) {
108 if (hasStashClaim(key)) {
109 logger_->log_warn("Stashing content of record %s to existing key %s; "
110 "existing content will be overwritten",
111 getUUIDStr(), key.c_str());
112 }
113
114 stashedContent_[key] = claim;
115}
116
117void FlowFile::clearStashClaim(const std::string& key) {
118 auto claimIt = stashedContent_.find(key);

Callers 1

stashMethod · 0.80

Calls 3

getUUIDStrFunction · 0.85
log_warnMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected