@Override
protected eu.stratosphere.api.common.operators.base.FlatMapOperatorBase<IN, OUT, GenericFlatMap<IN,OUT>> translateToDataFlow(Operator<IN> input) {
String name = getName() != null ? getName() : function.getClass().getName();
FlatMapOperatorBase<IN, OUT, GenericFlatMap<IN, OUT>> po = new FlatMapOperatorBase<IN, OUT, GenericFlatMap<IN, OUT>>(function, new UnaryOperatorInformation<IN, OUT>(getInputType(), getResultType()), name);
po.setInput(input);
if(this.getParallelism() > 0) {
po.setDegreeOfParallelism(this.getParallelism());
} else {
po.setDegreeOfParallelism(input.getDegreeOfParallelism());
}
return po;
}
}