Class DirectoryLines

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

public class DirectoryLines extends Object implements LongFunction<String>
Read each line in each matching file in a directory structure, providing one line for each time this function is called. The files are sorted at the time the function is initialized, and each line is read in order. This function does not produce the same result per cycle value. It is possible that different cycle inputs will return different inputs if the cycles are not applied in strict order. Still, this function is useful for consuming input from a set of files as input to a test or simulation.
  • Constructor Details

    • DirectoryLines

      public DirectoryLines(String basepath, String namePattern)
  • Method Details