From 58bd419cf6e4f2d1b16efb6dd175b0ca4a77ffaa Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Wed, 22 Feb 2023 15:59:20 -0600 Subject: [PATCH] add enums for bindings which use captures --- .../virtdata/core/templates/BindPoint.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/virtdata-api/src/main/java/io/nosqlbench/virtdata/core/templates/BindPoint.java b/virtdata-api/src/main/java/io/nosqlbench/virtdata/core/templates/BindPoint.java index d972245ba..c6457661d 100644 --- a/virtdata-api/src/main/java/io/nosqlbench/virtdata/core/templates/BindPoint.java +++ b/virtdata-api/src/main/java/io/nosqlbench/virtdata/core/templates/BindPoint.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 nosqlbench + * Copyright (c) 2022-2023 nosqlbench * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,7 +53,15 @@ public class BindPoint { * a definition bindpoint is expressed as anything between double curly braces like
{@code {{Identity()}}
* or
{@code {(Identity())}}
          */
-        definition
+        definition,
+        /**
+         * a reference to a captured variable, local to the current thread
+         */
+        localref,
+        /**
+         * a reference to a global captured variable, across the local JVM instance
+         */
+        globalref
     }
 
     public BindPoint(String anchor, String bindspec, Type type) {