Class UnsetOrLoad

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.stateful.UnsetOrLoad
All Implemented Interfaces:
LongFunction<Object>

public class UnsetOrLoad extends Object implements LongFunction<Object>
Reads a long variable from the input, hashes and scales it to the unit interval 0.0d - 1.0d, then uses the result to determine whether to return UNSET.value or a loaded value.
  • Constructor Details

    • UnsetOrLoad

      public UnsetOrLoad(double ratio, String varname)
  • Method Details