Class HashedFileExtractToString

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

public class HashedFileExtractToString
extends java.lang.Object
implements java.util.function.LongFunction<java.lang.String>
Pseudo-randomly extract a section of a text file and return it according to some minimum and maximum extract size. The file is loaded into memory as a shared text image. It is then indexed into as a character buffer to find a pseudo-randomly sized fragment.
  • Constructor Summary

    Constructors 
    Constructor Description
    HashedFileExtractToString​(java.lang.String fileName, int minsize, int maxsize)  
  • 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

  • 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