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