T- Type of the input elements.
O- Type of the returned elements.
@Public public interface MapFunction<T,O> extends Function, Serializable
The basic syntax for using a MapFunction is as follows:
DataSet<X> input = ...; DataSet<Y> result = input.map(new MyMapFunction());
value- The input value.
Exception- This method may throw exceptions. Throwing an exception will cause the operation to fail and may trigger recovery.
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.