List of usage examples for org.apache.spark.api.java.function DoubleFunction call
double call(T t) throws Exception;
From source file:org.apache.crunch.fn.SFunctions.java
License:Apache License
public static <T> SDoubleFunction<T> wrap(final DoubleFunction<T> f) { return new SDoubleFunction<T>() { @Override//from w w w. j a v a2s . c o m public double call(T t) throws Exception { return f.call(t); } }; }