mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
field capture refinements
This commit is contained in:
parent
7312d685f7
commit
0574203536
@ -55,7 +55,7 @@ public class OpCapture {
|
||||
OP op = dispenser.getOp(0L);
|
||||
|
||||
if (op instanceof UniformVariableCapture<?> captureF) {
|
||||
Function<?, Map<String,?>> function = captureF.initCaptureF(captures);
|
||||
Function<?, Map<String,?>> function = captureF.captureF(captures);
|
||||
return new CapturingOpDispenser(adapter, pop, dispenser, function);
|
||||
} else {
|
||||
throw new OpConfigError(
|
||||
|
@ -39,5 +39,5 @@ import java.util.function.Function;
|
||||
/// additional phase of type validation and coercion. If required types are not compatible a
|
||||
/// variable capture error should be thrown.
|
||||
public interface UniformVariableCapture<RESULT> {
|
||||
Function<RESULT,Map<String,?>> initCaptureF(CapturePoints<RESULT> points);
|
||||
Function<RESULT,Map<String,?>> captureF(CapturePoints<RESULT> points);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user