Class ModuloCSVLineToString

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.from_long.to_string.ModuloCSVLineToString
All Implemented Interfaces:
java.util.function.LongFunction<java.lang.String>

public class ModuloCSVLineToString
extends java.lang.Object
implements java.util.function.LongFunction<java.lang.String>
Select a value from a CSV file line by modulo division against the number of lines in the file. The second parameter is the field name, and this must be provided in the CSV header line as written.
  • Constructor Summary

    Constructors 
    Constructor Description
    ModuloCSVLineToString​(java.lang.String filename, java.lang.String fieldname)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String apply​(long input)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

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

    • ModuloCSVLineToString

      public ModuloCSVLineToString​(java.lang.String filename, java.lang.String fieldname)
  • Method Details

    • apply

      public java.lang.String apply​(long input)
      Specified by:
      apply in interface java.util.function.LongFunction<java.lang.String>
    • toString

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