Interface CycleFunction<T>
- All Superinterfaces:
ExpressionDetails,LongFunction<T>,VariableInjectable
- All Known Implementing Classes:
CompoundCycleFunction,CycleFunctions.NOOPVerifier,GroovyBooleanCycleFunction,GroovyCycleFunction,GroovyObjectEqualityFunction
-
Method Summary
Modifier and TypeMethodDescriptionapply(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
getExpressionDetailsMethods inherited from interface io.nosqlbench.adapters.api.evalctx.VariableInjectable
setVariable
-
Method Details
-
apply
Produce a result from a cycle. This is an encapsulating type for any implementations which need to- Specified by:
applyin interfaceLongFunction<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
-