emitter.emit(Pair.create(t, new Text("foo")));
}}, tableOf(strings(), strings()))
.groupByKey()
.map(new DoFn() {
public void process(Object v, EmitFn emitter) {
Pair p = (Pair)v;
// do some more foo processing
emitter.emit(Pair.create(p.getKey(), new Text("bar")));
}
}, tableOf(strings(), strings()))
// second group by key
.groupByKey()
.map(new DoFn() {
public void process(Object v, EmitFn emitter) {
Pair p = (Pair)v;
// do some more foo processing
emitter.emit(Pair.create(p.getKey(), new Text("bar 2")));
}
}, tableOf(strings(), strings()));
addOutput(output);
}