Class LoadDouble
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.stateful.from_long.LoadDouble
- All Implemented Interfaces:
LongToDoubleFunction
Load a value from a named thread-local variable, where the variable
name is fixed or a generated variable name from a provided function.
If the named variable is not defined, then the default value is returned.
-
Constructor Summary
ConstructorsConstructorDescriptionLoadDouble(String name) LoadDouble(String name, double defaultValue) LoadDouble(LongFunction<Object> nameFunc) LoadDouble(LongFunction<Object> nameFunc, double defaultValue) -
Method Summary
-
Constructor Details
-
LoadDouble
-
LoadDouble
-
LoadDouble
-
LoadDouble
-
-
Method Details
-
applyAsDouble
public double applyAsDouble(long value) - Specified by:
applyAsDoublein interfaceLongToDoubleFunction
-