Class HashInterval
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.unary_int.HashInterval
- All Implemented Interfaces:
IntUnaryOperator
-
Constructor Summary
ConstructorsConstructorDescriptionHashInterval(int width) Create a hash interval based on a minimum value of 0 and a specified width.HashInterval(int minIncl, int maxExcl) Create a hash interval -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.IntUnaryOperator
andThen, compose
-
Constructor Details
-
HashInterval
public HashInterval(int width) Create a hash interval based on a minimum value of 0 and a specified width.- Parameters:
width- The maximum value, which is excluded.
-
HashInterval
public HashInterval(int minIncl, int maxExcl) Create a hash interval- Parameters:
minIncl- The minimum value, which is includedmaxExcl- The maximum value, which is excluded
-
-
Method Details
-
applyAsInt
public int applyAsInt(int operand) - Specified by:
applyAsIntin interfaceIntUnaryOperator
-