Class CompoundCycleFunction<T>
java.lang.Object
io.nosqlbench.adapters.api.evalctx.CompoundCycleFunction<T>
- All Implemented Interfaces:
CycleFunction<T>,ExpressionDetails,VariableInjectable,LongFunction<T>
-
Constructor Summary
ConstructorsConstructorDescriptionCompoundCycleFunction(BinaryOperator<T> reducer, CycleFunction<T>... functions) CompoundCycleFunction(BinaryOperator<T> reducer, List<CycleFunction<T>> functions) -
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.<V> voidsetVariable(String name, V value) Set a variable by name.toString()
-
Constructor Details
-
CompoundCycleFunction
-
CompoundCycleFunction
-
-
Method Details
-
apply
Description copied from interface:CycleFunctionProduce a result from a cycle. This is an encapsulating type for any implementations which need to- Specified by:
applyin interfaceCycleFunction<T>- Specified by:
applyin interfaceLongFunction<T>- Parameters:
value- the function argument- Returns:
-
newInstance
Description copied from interface:CycleFunctionGet a new instance of a CycleFunction, based on the current one, but with its own instance of any non-threadsafe elements.- Specified by:
newInstancein interfaceCycleFunction<T>- Returns:
- A new CycleFunction
-
getExpressionDetails
- Specified by:
getExpressionDetailsin interfaceExpressionDetails
-
setVariable
Description copied from interface:VariableInjectableSet a variable by name.- Specified by:
setVariablein interfaceVariableInjectable
-
toString
-