Class StandardCycleOp<T>

java.lang.Object
io.nosqlbench.engine.api.activityimpl.StandardCycleOp<T>
All Implemented Interfaces:
CycleOp<T>, Op, OpResultSize, LongFunction<T>

public class StandardCycleOp<T> extends Object implements CycleOp<T>
  • Constructor Details

    • StandardCycleOp

      public StandardCycleOp(LongFunction<? extends T> opfunc)
  • Method Details

    • apply

      public T apply(long value)
      Description copied from interface: CycleOp

      Run an action for the given cycle. The cycle value is only to be used for anecdotal presentation. This form is called when there is a chaining operation which will do something with this result.

      Specified by:
      apply in interface CycleOp<T>
      Specified by:
      apply in interface LongFunction<T>
      Parameters:
      value - The cycle value for which an operation is run
      Returns:
      A result which is the native result type for the underlying driver.