Class SaveInteger
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.stateful.SaveInteger
- All Implemented Interfaces:
java.util.function.IntUnaryOperator
public class SaveInteger
extends java.lang.Object
implements java.util.function.IntUnaryOperator
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
SaveDouble(Load('id'))-
Constructor Summary
Constructors Constructor Description SaveInteger(java.lang.String name)SaveInteger(java.util.function.Function<java.lang.Object,java.lang.Object> nameFunc) -
Method Summary
Modifier and Type Method Description intapplyAsInt(int operand)
-
Constructor Details
-
SaveInteger
public SaveInteger(java.lang.String name) -
SaveInteger
public SaveInteger(java.util.function.Function<java.lang.Object,java.lang.Object> nameFunc)
-
-
Method Details
-
applyAsInt
public int applyAsInt(int operand)- Specified by:
applyAsIntin interfacejava.util.function.IntUnaryOperator
-