| 115 | } |
| 116 | |
| 117 | void 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 | |
| 125 | bool FlowFile::hasStashClaim(const std::string& key) { |
| 126 | return stashedContent_.find(key) != stashedContent_.end(); |