| 162 | } |
| 163 | |
| 164 | bool FlowFile::removeAttribute(const std::string key) { |
| 165 | auto it = attributes_.find(key); |
| 166 | if (it != attributes_.end()) { |
| 167 | attributes_.erase(it); |
| 168 | return true; |
| 169 | } else { |
| 170 | return false; |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | bool FlowFile::updateAttribute(const std::string key, const std::string value) { |
| 175 | auto it = attributes_.find(key); |