Package org.apache.wayang.spark.compiler
Class ExtendedMapFunctionAdapter<InputType,OutputType>
- java.lang.Object
-
- org.apache.wayang.spark.compiler.ExtendedMapFunctionAdapter<InputType,OutputType>
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.spark.api.java.function.Function<InputType,OutputType>
public class ExtendedMapFunctionAdapter<InputType,OutputType> extends java.lang.Object implements org.apache.spark.api.java.function.Function<InputType,OutputType>
Implements aFunction
that callsExtendedFunction.open(ExecutionContext)
of its implementation before delegating the very firstFunction.call(Object)
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExtendedMapFunctionAdapter(FunctionDescriptor.ExtendedSerializableFunction<InputType,OutputType> extendedFunction, SparkExecutionContext sparkExecutionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputType
call(InputType dataQuantume)
-
-
-
Constructor Detail
-
ExtendedMapFunctionAdapter
public ExtendedMapFunctionAdapter(FunctionDescriptor.ExtendedSerializableFunction<InputType,OutputType> extendedFunction, SparkExecutionContext sparkExecutionContext)
-
-
Method Detail
-
call
public OutputType call(InputType dataQuantume) throws java.lang.Exception
- Specified by:
call
in interfaceorg.apache.spark.api.java.function.Function<InputType,OutputType>
- Throws:
java.lang.Exception
-
-