@Override
protected eu.stratosphere.api.common.operators.base.MapOperatorBase<IN, OUT, GenericMap<IN, OUT>> translateToDataFlow(Operator<IN> input) {
String name = getName() != null ? getName() : function.getClass().getName();
MapOperatorBase<IN, OUT, GenericMap<IN, OUT>> po = new MapOperatorBase<IN, OUT, GenericMap<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;
}