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 intapplyAsInt(long value)java.lang.StringtoString()
-
Constructor Details
-
HashedLineToInt
public HashedLineToInt(java.lang.String filename)
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
applyAsInt
public int applyAsInt(long value)- Specified by:
applyAsIntin interfacejava.util.function.LongToIntFunction
-