Class ExtendedFunction<InputType,​OutputType>

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

    public class ExtendedFunction<InputType,​OutputType>
    extends java.lang.Object
    implements org.apache.spark.api.java.function.Function<InputType,​OutputType>
    Implements a Function that calls ExtendedFunction.open(ExecutionContext) of its implementation before delegating the very first Function.call(Object).
    See Also:
    Serialized Form
    • Constructor Detail

      • ExtendedFunction

        public ExtendedFunction​(T extendedFunction,
                                SparkExecutionContext sparkExecutionContext)
    • Method Detail

      • call

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