Class Save

java.lang.Object
io.nosqlbench.virtdata.library.basics.shared.stateful.from_long.Save
All Implemented Interfaces:
java.util.function.LongUnaryOperator

public class Save
extends java.lang.Object
implements java.util.function.LongUnaryOperator
Save the current input value at this point in the function chain to a thread-local variable name. The input value is unchanged, and available for the next function in the chain to use as-is.
  • Constructor Summary

    Constructors 
    Constructor Description
    Save​(java.lang.String name)  
    Save​(java.util.function.LongFunction<java.lang.Object> nameFunc)  
  • Method Summary

    Modifier and Type Method Description
    long applyAsLong​(long operand)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.LongUnaryOperator

    andThen, compose
  • Constructor Details

    • Save

      public Save​(java.lang.String name)
    • Save

      public Save​(java.util.function.LongFunction<java.lang.Object> nameFunc)
  • Method Details

    • applyAsLong

      public long applyAsLong​(long operand)
      Specified by:
      applyAsLong in interface java.util.function.LongUnaryOperator