Github user pwendell commented on a diff in the pull request: https://github.com/apache/incubator-spark/pull/539#discussion_r10019661 --- Diff: core/src/main/java/org/apache/spark/api/java/function/DoubleFunction.java --- @@ -15,13 +15,10 @@ * limitations under the License. */ -package org.apache.spark.api.java.function +package org.apache.spark.api.java.function; -import scala.reflect.ClassTag +import java.io.Serializable; -/** - * A function that takes two inputs and returns zero or more output records. - */ -abstract class FlatMapFunction2[A, B, C] extends Function2[A, B, java.lang.Iterable[C]] { - def elementType() : ClassTag[C] = ClassTag.Any.asInstanceOf[ClassTag[C]] +public interface DoubleFunction<T> extends Serializable { + public Double call(T t) throws Exception; --- End diff -- I'd actually be inclined to go with `double` here as we are already changing some API's around.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---