Interface CycleFunction<T>

  • Method Summary

    Modifier and Type
    Method
    Description
    apply(long value)
    Produce a result from a cycle.
    Get a new instance of a CycleFunction, based on the current one, but with its own instance of any non-threadsafe elements.

    Methods inherited from interface io.nosqlbench.adapters.api.evalctx.ExpressionDetails

    getExpressionDetails

    Methods inherited from interface io.nosqlbench.adapters.api.evalctx.VariableInjectable

    setVariable
  • Method Details

    • apply

      T apply(long value)
      Produce a result from a cycle. This is an encapsulating type for any implementations which need to
      Specified by:
      apply in interface LongFunction<T>
      Parameters:
      value - the function argument
      Returns:
    • newInstance

      CycleFunction<T> newInstance()
      Get a new instance of a CycleFunction, based on the current one, but with its own instance of any non-threadsafe elements.
      Returns:
      A new CycleFunction