aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/scala/spark/api/java/function/DoubleFlatMapFunction.java
blob: 3a8192be3a4fb2da994fc2274f5a8eaf3e1eed1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package spark.api.java.function;


import scala.runtime.AbstractFunction1;

import java.io.Serializable;

/**
 * A function that returns zero or more records of type Double from each input record.
 */
// DoubleFlatMapFunction does not extend FlatMapFunction because flatMap is
// overloaded for both FlatMapFunction and DoubleFlatMapFunction.
public abstract class DoubleFlatMapFunction<T> extends AbstractFunction1<T, Iterable<Double>>
  implements Serializable {

  public abstract Iterable<Double> call(T t);

  @Override
  public final Iterable<Double> apply(T t) { return call(t); }
}