Class HashRange

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_long.HashRange
All Implemented Interfaces:
LongUnaryOperator

public class HashRange extends Object implements LongUnaryOperator
The various HashRange functions take an input long, hash it to a random long value, and then use to interpolate a fractional value between the minimum and maximum values. To select a specific type of HashRange function, simply use the same datatype in the min and max values you wish to have on output. You can specify hash ranges as small as a single-element range, like (5,5), or as wide as the relevant data type allows.
  • Constructor Details

    • HashRange

      public HashRange(long width)
    • HashRange

      public HashRange(long minValue, long maxValue)
  • Method Details