Class FlatMapFunctionAdapter<InputType,​OutputType>

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.spark.api.java.function.FlatMapFunction<InputType,​OutputType>

    public class FlatMapFunctionAdapter<InputType,​OutputType>
    extends java.lang.Object
    implements org.apache.spark.api.java.function.FlatMapFunction<InputType,​OutputType>
    Wraps a Function as a FlatMapFunction.
    See Also:
    Serialized Form
    • Constructor Detail

      • FlatMapFunctionAdapter

        public FlatMapFunctionAdapter​(java.util.function.Function<InputType,​java.lang.Iterable<OutputType>> function)
    • Method Detail

      • call

        public java.util.Iterator<OutputType> call​(InputType dataQuantum)
                                            throws java.lang.Exception
        Specified by:
        call in interface org.apache.spark.api.java.function.FlatMapFunction<InputType,​OutputType>
        Throws:
        java.lang.Exception