Class SaveLong
java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.stateful.from_long.SaveLong
- All Implemented Interfaces:
java.util.function.LongUnaryOperator
public class SaveLong
extends java.lang.Object
implements java.util.function.LongUnaryOperator
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
SaveLong(Load('id'))
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description longapplyAsLong(long 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.LongUnaryOperator
andThen, compose
-
Constructor Details
-
SaveLong
public SaveLong(java.lang.String name) -
SaveLong
public SaveLong(java.util.function.Function<java.lang.Object,java.lang.Object> nameFunc)
-
-
Method Details
-
applyAsLong
public long applyAsLong(long operand)- Specified by:
applyAsLongin interfacejava.util.function.LongUnaryOperator
-