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