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

public class HashInterval
extends java.lang.Object
implements java.util.function.LongToIntFunction
  • Constructor Summary

    Constructors
    Constructor Description
    HashInterval​(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

    Modifier and Type Method Description
    int applyAsInt​(long operand)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

    • applyAsInt

      public int applyAsInt​(long operand)
      Specified by:
      applyAsInt in interface java.util.function.LongToIntFunction