Example usage for org.apache.spark.api.java.function DoubleFlatMapFunction call

List of usage examples for org.apache.spark.api.java.function DoubleFlatMapFunction call

Introduction

In this page you can find the example usage for org.apache.spark.api.java.function DoubleFlatMapFunction call.

Prototype

Iterator<Double> call(T t) throws Exception;

Source Link

Usage

From source file:org.apache.crunch.fn.SFunctions.java

License:Apache License

public static <T> SDoubleFlatMapFunction<T> wrap(final DoubleFlatMapFunction<T> f) {
    return new SDoubleFlatMapFunction<T>() {
        @Override/* w  w w .j a va 2s  .  com*/
        public Iterable<Double> call(T t) throws Exception {
            return f.call(t);
        }
    };
}