/** * This is not a basic operator. It can be straightforwardly implemented * by using {@code FlatMap} operator. * @return the operator chain representing this operation including FlatMap */ @Override public DAG<Operator<?, ?>> getBasicOps() { return DAG.of( // do not use the client API here, because it modifies the Flow! new FlatMap<IN, OUT>(getName(), getFlow(), input, (i, c) -> c.collect(mapper.apply(i, c.asContext())), null, getHints())); }
/** * This is not a basic operator. It can be straightforwardly implemented * by using {@code FlatMap} operator. * @return the operator chain representing this operation including FlatMap */ @Override public DAG<Operator<?, ?>> getBasicOps() { return DAG.of( // do not use the client API here, because it modifies the Flow! new FlatMap<IN, OUT>(getName(), getFlow(), input, (i, c) -> c.collect(mapper.apply(i, c.asContext())), null, getHints())); }