You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-dev@apache.org by ScrapCodes <gi...@git.apache.org> on 2014/02/25 04:57:28 UTC

[GitHub] incubator-spark pull request: [java8API] SPARK-964 Investigate the...

Github user ScrapCodes commented on a diff in the pull request:

    https://github.com/apache/incubator-spark/pull/539#discussion_r10023650
  
    --- 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 --
    
    Hey Matei and Patrick, I was curious what would be its benefit ?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---