Package org.apache.calcite.plan.hep
Class HepVertexIterator<V extends HepRelVertex>
java.lang.Object
org.apache.calcite.plan.hep.HepVertexIterator<V>
- Type Parameters:
V- Vertex type
- All Implemented Interfaces:
Iterator<V>
Iterates over the vertices in a HepVertex graph in depth-first order.
In a HepVertex graph, every HepVertex.getCurrentRel().getInputs() is a
List<HepRelVertex>.
-
Method Details
-
of
Creates a HepVertexIterator for a given HepVertex root.- Parameters:
root- Root of iteration.visitedSet- Set of HepVertex IDs to exclude from iteration; next() will add more items to it.
-
continueFrom
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<V extends HepRelVertex>
-
next
- Specified by:
nextin interfaceIterator<V extends HepRelVertex>
-
remove
public void remove()- Specified by:
removein interfaceIterator<V extends HepRelVertex>
-