Class GroovyObjectEqualityFunction

java.lang.Object
io.nosqlbench.adapters.api.evalctx.GroovyCycleFunction<Boolean>
io.nosqlbench.adapters.api.evalctx.GroovyObjectEqualityFunction
All Implemented Interfaces:
CycleFunction<Boolean>, ExpressionDetails, VariableInjectable, LongFunction<Boolean>

public class GroovyObjectEqualityFunction extends GroovyCycleFunction<Boolean>
This evaluator uses Object.equals(Object) to compare the results of an operation with a constructed value. The script used is meant to only construct the object to compare with. All context variables can be injected into the script context except for one, the result variable. This is intercepted and then used as a basis for comparison to the result of executing the script.