The basic syntax for using a MapFunction is as follows:
DataSetinput = ...; DataSet result = input.map(new MyMapFunction());
Like all functions, the MapFunction needs to be serializable, as defined in {@link java.io.Serializable}. @param < IN> Type of the input elements. @param < OUT> Type of the returned elements.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|