Class ToDouble
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.conversions.from_long.ToDouble
- All Implemented Interfaces:
LongToDoubleFunction
Create a double by converting values. This function works in the following modes:
- If you pass a function that produces a numeric type, then the result of this function is evaluated for the input cycle and converted to a double.
- If you pass any numeric value which is not a function, then this value is converted and returned for every cycle as a fixed value.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ToDouble
public ToDouble() -
ToDouble
-
-
Method Details
-
applyAsDouble
public double applyAsDouble(long value) - Specified by:
applyAsDoublein interfaceLongToDoubleFunction
-