Class LoadDouble

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.stateful.from_long.LoadDouble
All Implemented Interfaces:
java.util.function.LongToDoubleFunction

public class LoadDouble
extends java.lang.Object
implements java.util.function.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

    Constructors 
    Constructor Description
    LoadDouble​(java.lang.String name)  
    LoadDouble​(java.lang.String name, double defaultValue)  
    LoadDouble​(java.util.function.LongFunction<java.lang.Object> nameFunc)  
    LoadDouble​(java.util.function.LongFunction<java.lang.Object> nameFunc, double defaultValue)  
  • Method Summary

    Modifier and Type Method Description
    double applyAsDouble​(long value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LoadDouble

      public LoadDouble​(java.lang.String name)
    • LoadDouble

      public LoadDouble​(java.lang.String name, double defaultValue)
    • LoadDouble

      public LoadDouble​(java.util.function.LongFunction<java.lang.Object> nameFunc)
    • LoadDouble

      public LoadDouble​(java.util.function.LongFunction<java.lang.Object> nameFunc, double defaultValue)
  • Method Details

    • applyAsDouble

      public double applyAsDouble​(long value)
      Specified by:
      applyAsDouble in interface java.util.function.LongToDoubleFunction