Package org.apache.wayang.spark.compiler
Class ExtendedMapPartitionsFunctionAdapter<InputType,OutputType>
java.lang.Object
org.apache.wayang.spark.compiler.ExtendedMapPartitionsFunctionAdapter<InputType,OutputType>
- All Implemented Interfaces:
Serializable
,org.apache.spark.api.java.function.FlatMapFunction<Iterator<InputType>,
OutputType>
public class ExtendedMapPartitionsFunctionAdapter<InputType,OutputType>
extends Object
implements org.apache.spark.api.java.function.FlatMapFunction<Iterator<InputType>,OutputType>
Wraps a
Function
as a FlatMapFunction
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExtendedMapPartitionsFunctionAdapter
(FunctionDescriptor.ExtendedSerializableFunction<Iterable<InputType>, Iterable<OutputType>> extendedFunction, SparkExecutionContext sparkExecutionContext) -
Method Summary
-
Constructor Details
-
ExtendedMapPartitionsFunctionAdapter
public ExtendedMapPartitionsFunctionAdapter(FunctionDescriptor.ExtendedSerializableFunction<Iterable<InputType>, Iterable<OutputType>> extendedFunction, SparkExecutionContext sparkExecutionContext)
-
-
Method Details
-
call
- Specified by:
call
in interfaceorg.apache.spark.api.java.function.FlatMapFunction<InputType,
OutputType> - Throws:
Exception
-