aglinxinyuan opened a new pull request, #4568: URL: https://github.com/apache/texera/pull/4568
### What changes were proposed in this PR? Add `RegionSpec` covering the public surface of `Region` (`amber/src/main/scala/org/apache/texera/amber/engine/architecture/scheduling/Region.scala`): - Constructor exposes `physicalOps`, `physicalLinks`, and `ports` via `getOperators`/`getLinks`/`getPorts` - `getOperator(id)` looks up by `PhysicalOpIdentity` and throws `NoSuchElementException` for unknown ids - `topologicalIterator` yields operators in topological order derived from `physicalLinks` - `getSourceOperators` treats operators without input ports as sources - `getStarterOperators` equals `getSourceOperators` when no `resourceConfig` is provided ### Any related issues, documentation, discussions? Closes #4567 ### How was this PR tested? `sbt "WorkflowExecutionService/testOnly org.apache.texera.amber.engine.architecture.scheduling.RegionSpec"` — 9/9 tests pass. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 4.7) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
