Class RandomLineToInt

java.lang.Object
io.nosqlbench.virtdata.library.random.RandomLineToInt
All Implemented Interfaces:
java.util.function.LongToIntFunction

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

    Constructors 
    Constructor Description
    RandomLineToInt​(java.lang.String filename)  
    RandomLineToInt​(java.lang.String filename, long seed)  
  • 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

    • RandomLineToInt

      public RandomLineToInt​(java.lang.String filename)
    • RandomLineToInt

      public RandomLineToInt​(java.lang.String filename, long seed)
  • 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