List of usage examples for org.apache.spark.api.java.function Function2 call
R call(T1 v1, T2 v2) throws Exception;
From source file:org.apache.crunch.fn.SFunctions.java
License:Apache License
public static <K, V, R> SFunction2<K, V, R> wrap(final Function2<K, V, R> f) { return new SFunction2<K, V, R>() { @Override/*from w w w. j a v a 2 s . c o m*/ public R call(K k, V v) throws Exception { return f.call(k, v); } }; }