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

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

Introduction

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

Prototype

double call(T t) throws Exception;

Source Link

Usage

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);
        }
    };
}