| 262 | |
| 263 | protected: |
| 264 | std::string ToStringExtra(int indent = 0) const override { |
| 265 | std::stringstream ss; |
| 266 | ss << "features=["; |
| 267 | bool first = true; |
| 268 | for (const auto& name : options_.feature_field_names) { |
| 269 | if (first) { |
| 270 | first = false; |
| 271 | } else { |
| 272 | ss << ", "; |
| 273 | } |
| 274 | ss << name; |
| 275 | } |
| 276 | ss << "] measurements=["; |
| 277 | first = true; |
| 278 | for (const auto& name : options_.measurement_field_names) { |
| 279 | if (first) { |
| 280 | first = false; |
| 281 | } else { |
| 282 | ss << ", "; |
| 283 | } |
| 284 | ss << name; |
| 285 | } |
| 286 | ss << "]"; |
| 287 | return ss.str(); |
| 288 | } |
| 289 | |
| 290 | private: |
| 291 | PivotLongerNodeOptions options_; |