Class VirtDataFunctions
java.lang.Object
io.nosqlbench.virtdata.api.bindings.VirtDataFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <F> FAdapt a functional object into a different type of functional object.static <F> List<F> protected static LongToIntFunctionadaptLongToIntFunction(Object func, Class<?> output)
-
Constructor Details
-
VirtDataFunctions
public VirtDataFunctions()
-
-
Method Details
-
adapt
Adapt a functional object into a different type of functional object.- Type Parameters:
F- The type of function object needed.- Parameters:
func- The original function object.type- The type of function object needed.output- The output type required for the adapted function.truncate- Whether to throw an exception on any narrowing conversion. If this is set to false, then basic roll-over logic is applied on narrowing conversions.- Returns:
- An instance of F
-
adaptList
-
adaptLongToIntFunction
-