Class HashInterval

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_int.HashInterval
All Implemented Interfaces:
LongToIntFunction

public class HashInterval extends Object implements LongToIntFunction
  • 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 included
      maxExcl - The maximum value, which is excluded
  • Method Details