Package org.apache.wayang.spark.compiler
Class MapFunctionAdapter<InputType,OutputType>
- java.lang.Object
-
- org.apache.wayang.spark.compiler.MapFunctionAdapter<InputType,OutputType>
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.spark.api.java.function.Function<InputType,OutputType>
public class MapFunctionAdapter<InputType,OutputType> extends java.lang.Object implements org.apache.spark.api.java.function.Function<InputType,OutputType>
Wraps aFunction
as aFunction
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MapFunctionAdapter(java.util.function.Function<InputType,OutputType> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputType
call(InputType dataQuantum)
-
-
-
Constructor Detail
-
MapFunctionAdapter
public MapFunctionAdapter(java.util.function.Function<InputType,OutputType> function)
-
-
Method Detail
-
call
public OutputType call(InputType dataQuantum) throws java.lang.Exception
- Specified by:
call
in interfaceorg.apache.spark.api.java.function.Function<InputType,OutputType>
- Throws:
java.lang.Exception
-
-