Class HashRangeScaled
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_long.HashRangeScaled
- All Implemented Interfaces:
java.util.function.LongUnaryOperator
public class HashRangeScaled
extends java.lang.Object
implements java.util.function.LongUnaryOperator
Return a pseudo-random value which can only be as large as the input times
a scale factor, with a default scale factor of 1.0d
-
Constructor Summary
Constructors Constructor Description HashRangeScaled()HashRangeScaled(double scalefactor) -
Method Summary
Modifier and Type Method Description longapplyAsLong(long operand)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.LongUnaryOperator
andThen, compose
-
Constructor Details
-
HashRangeScaled
public HashRangeScaled(double scalefactor) -
HashRangeScaled
public HashRangeScaled()
-
-
Method Details
-
applyAsLong
public long applyAsLong(long operand)- Specified by:
applyAsLongin interfacejava.util.function.LongUnaryOperator
-