Package org.apache.wayang.spark.compiler
Class ExtendedMapPartitionsFunctionAdapter<InputType,OutputType>
- java.lang.Object
-
- org.apache.wayang.spark.compiler.ExtendedMapPartitionsFunctionAdapter<InputType,OutputType>
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.spark.api.java.function.FlatMapFunction<java.util.Iterator<InputType>,OutputType>
public class ExtendedMapPartitionsFunctionAdapter<InputType,OutputType> extends java.lang.Object implements org.apache.spark.api.java.function.FlatMapFunction<java.util.Iterator<InputType>,OutputType>
Wraps aFunction
as aFlatMapFunction
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExtendedMapPartitionsFunctionAdapter(FunctionDescriptor.ExtendedSerializableFunction<java.lang.Iterable<InputType>,java.lang.Iterable<OutputType>> extendedFunction, SparkExecutionContext sparkExecutionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<OutputType>
call(java.util.Iterator<InputType> it)
-
-
-
Constructor Detail
-
ExtendedMapPartitionsFunctionAdapter
public ExtendedMapPartitionsFunctionAdapter(FunctionDescriptor.ExtendedSerializableFunction<java.lang.Iterable<InputType>,java.lang.Iterable<OutputType>> extendedFunction, SparkExecutionContext sparkExecutionContext)
-
-
Method Detail
-
call
public java.util.Iterator<OutputType> call(java.util.Iterator<InputType> it) throws java.lang.Exception
- Specified by:
call
in interfaceorg.apache.spark.api.java.function.FlatMapFunction<InputType,OutputType>
- Throws:
java.lang.Exception
-
-