List of usage examples for org.apache.spark.api.java.function FlatMapFunction2 call
Iterator<R> call(T1 t1, T2 t2) throws Exception;
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); } }; }