Class HashedLineToInt

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

public class HashedLineToInt
extends java.lang.Object
implements java.util.function.LongToIntFunction
Return a pseudo-randomly selected integer value from a file of numeric values. Each line in the file must contain one parsable integer value.
  • Constructor Summary

    Constructors 
    Constructor Description
    HashedLineToInt​(java.lang.String filename)  
  • Method Summary

    Modifier and Type Method Description
    int applyAsInt​(long value)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • applyAsInt

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