summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/main/java/com/yahoo/search/query/context/QueryContext.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/context/QueryContext.java b/container-search/src/main/java/com/yahoo/search/query/context/QueryContext.java
index d6fc9adeac8..20f768fadcb 100644
--- a/container-search/src/main/java/com/yahoo/search/query/context/QueryContext.java
+++ b/container-search/src/main/java/com/yahoo/search/query/context/QueryContext.java
@@ -15,8 +15,7 @@ import java.util.Iterator;
* A proxy to the Execution.trace() which exists for legacy reasons.
* Calls to this is forwarded to owningQuery.getModel().getExecution().trace().
*
- * @since 4.2
- * @author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
+ * @author Steinar Knutsen
* @author bratseth
*/
public class QueryContext implements Cloneable {
@@ -109,4 +108,14 @@ public class QueryContext implements Cloneable {
/** Returns the execution trace this delegates to */
public Execution.Trace getTrace() { return owner.getModel().getExecution().trace(); }
+ @Override
+ public QueryContext clone() {
+ try {
+ return (QueryContext)super.clone();
+ }
+ catch (CloneNotSupportedException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
}