| 182 | } |
| 183 | |
| 184 | bool FlowFile::addAttribute(const std::string& key, const std::string& value) { |
| 185 | auto it = attributes_.find(key); |
| 186 | if (it != attributes_.end()) { |
| 187 | // attribute already there in the map |
| 188 | return false; |
| 189 | } else { |
| 190 | attributes_[key] = value; |
| 191 | return true; |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | void FlowFile::setLineageStartDate(const uint64_t date) { |
| 196 | lineage_start_date_ = date; |
no test coverage detected