Class SaveFloat
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.stateful.SaveFloat
- All Implemented Interfaces:
java.util.function.Function<java.lang.Float,java.lang.Float>,java.util.function.UnaryOperator<java.lang.Float>
public class SaveFloat
extends java.lang.Object
implements java.util.function.UnaryOperator<java.lang.Float>
Save a value to a named thread-local variable, where the variable
name is fixed or a generated variable name from a provided function.
Note that the input type is not that suitable for constructing names,
so this is more likely to be used in an indirect naming pattern like
SaveFloat(Load('id'))
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description java.lang.Floatapply(java.lang.Float operand)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.Function
andThen, compose
-
Constructor Details
-
SaveFloat
public SaveFloat(java.lang.String name) -
SaveFloat
public SaveFloat(java.util.function.Function<java.lang.Object,java.lang.Object> nameFunc)
-
-
Method Details
-
apply
public java.lang.Float apply(java.lang.Float operand)- Specified by:
applyin interfacejava.util.function.Function<java.lang.Float,java.lang.Float>
-