* Generates a filename for the final merged output file. * Uses the groupId as the identifier in the final filename. * * Example with baseName "trace" and groupId "20240101-120000-000": * Filename: trace.20240101-120000-000.json * * Example with baseName "trace" and groupId "measur
()
| 298 | * @returns The filename for the final merged output file |
| 299 | */ |
| 300 | getFinalFilePath() { |
| 301 | const groupIdDir = path.join(this.#dir, this.groupId); |
| 302 | const { baseName, finalExtension } = this.#format; |
| 303 | |
| 304 | return path.join( |
| 305 | groupIdDir, |
| 306 | `${baseName}.${this.groupId}${finalExtension}`, |
| 307 | ); |
| 308 | } |
| 309 | |
| 310 | shard() { |
| 311 | this.assertActive(); |