Class HashInterval
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_int.HashInterval
- All Implemented Interfaces:
LongToIntFunction
-
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
-
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(long operand) - Specified by:
applyAsIntin interfaceLongToIntFunction
-