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

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

Introduction

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

Prototype

Iterator<R> call(T1 t1, T2 t2) throws Exception;

Source Link

Usage

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

License:Apache License

public static <K, V, R> SFlatMapFunction2<K, V, R> wrap(final FlatMapFunction2<K, V, R> f) {
    return new SFlatMapFunction2<K, V, R>() {
        @Override/*from  w ww  . j  a  va  2s  . c om*/
        public Iterable<R> call(K k, V v) throws Exception {
            return f.call(k, v);
        }
    };
}