Package org.apache.wayang.spark.compiler
Class ExtendedMapFunctionAdapter<InputType,OutputType>
java.lang.Object
org.apache.wayang.spark.compiler.ExtendedMapFunctionAdapter<InputType,OutputType>
- All Implemented Interfaces:
Serializable
,org.apache.spark.api.java.function.Function<InputType,
OutputType>
public class ExtendedMapFunctionAdapter<InputType,OutputType>
extends Object
implements org.apache.spark.api.java.function.Function<InputType,OutputType>
Implements a
Function
that calls ExtendedFunction.open(ExecutionContext)
of its implementation before delegating the very first Function.call(Object)
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExtendedMapFunctionAdapter
(FunctionDescriptor.ExtendedSerializableFunction<InputType, OutputType> extendedFunction, SparkExecutionContext sparkExecutionContext) -
Method Summary
-
Constructor Details
-
ExtendedMapFunctionAdapter
public ExtendedMapFunctionAdapter(FunctionDescriptor.ExtendedSerializableFunction<InputType, OutputType> extendedFunction, SparkExecutionContext sparkExecutionContext)
-
-
Method Details
-
call
- Specified by:
call
in interfaceorg.apache.spark.api.java.function.Function<InputType,
OutputType> - Throws:
Exception
-