public class ExecutionGroupVertexIterator extends Object implements Iterator<ExecutionGroupVertex>
Iterator interface which allows to
traverse an execution graph and visit every reachable group vertex exactly once. The order
in which the group vertices are visited corresponds to the order of their discovery in a depth first
search.
This class is not thread-safe.
| Constructor and Description |
|---|
ExecutionGroupVertexIterator(ExecutionGraph executionGraph,
boolean forward,
int stage)
Creates a new execution group vertex iterator.
|
public ExecutionGroupVertexIterator(ExecutionGraph executionGraph, boolean forward, int stage)
executionGraph - the execution graph that should be traversedforward - true if the graph should be traversed in correct order, false to reverse it in
reverse orderstage - the number of the stage whose vertices should be traversed or -1 if all stages should be included in the
traversalpublic boolean hasNext()
hasNext in interface Iterator<ExecutionGroupVertex>public ExecutionGroupVertex next()
next in interface Iterator<ExecutionGroupVertex>public void remove()
remove in interface Iterator<ExecutionGroupVertex>Copyright © 2014 The Apache Software Foundation. All rights reserved.