For example, given an Operator
class, we can imagine a Template
class that looks something like this:
public class Template {
private Operator o;
public Template(Operator o) { this.o = o; }
public run() { this.o.run(this); }
// Receive a tuple from the left child over the network.
public Tuple recvLeft() {...}
// Receive a tuple from the right child over the network.
public Tuple recvRight() {...}
// Send a tuple over the network.
public void send(Tuple) {...}
}
next
method is invoked.