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

Method clearStashClaim

libminifi/src/core/FlowFile.cpp:117–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void FlowFile::clearStashClaim(const std::string& key) {
118 auto claimIt = stashedContent_.find(key);
119 if (claimIt != stashedContent_.end()) {
120 claimIt->second = nullptr;
121 stashedContent_.erase(claimIt);
122 }
123}
124
125bool FlowFile::hasStashClaim(const std::string& key) {
126 return stashedContent_.find(key) != stashedContent_.end();

Callers 1

restoreMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected