Yeah, using the PipelineVisitor interface and Pipeline.traverseTopologically is the current way to access the elements of the graph.
The ConsumerTrackingPipelineVisitor ( https://github.com/apache/incubator-beam/blob/master/runners/direct-java/src/main/java/org/apache/beam/runners/direct/ConsumerTrackingPipelineVisitor.java) is a visitor that constructs the forward edges of a pipeline. On Mon, Aug 29, 2016 at 2:10 PM, Aparup Banerjee (apbanerj) < [email protected]> wrote: > What’s the best way to get a list of transformations from a Pipeline? I am > planning to build an UI on top of Beam pipelines. Looks like the right way > is to attach a Visitor and populate the structure? > > Thanks, > Aparup >
