diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-08-25 11:59:29 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-08-25 11:59:29 +0200 |
commit | 895e5881213da925d71a6d0ad8feffc92acaa96e (patch) | |
tree | 73f2f4eed40c6c29e747272fc6bda2ae91c95191 /container-search/src/main/java/com/yahoo/search/Query.java | |
parent | bf81a11f33d4c687e6446b67b1e26a67c1bd59b7 (diff) |
Wire in query parameter profileDepth to control how deep down in the depency tree
profiling shall go.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/Query.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/Query.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/Query.java b/container-search/src/main/java/com/yahoo/search/Query.java index 3a2bccf017e..6930e648ffa 100644 --- a/container-search/src/main/java/com/yahoo/search/Query.java +++ b/container-search/src/main/java/com/yahoo/search/Query.java @@ -687,6 +687,7 @@ public class Query extends com.yahoo.processing.Request implements Cloneable { public void attachContext(Query query) throws IllegalStateException { query.getTrace().setLevel(getTrace().getLevel()); query.getTrace().setExplainLevel(getTrace().getExplainLevel()); + query.getTrace().setProfileDepth(getTrace().getProfileDepth()); if (context == null) return; if (query.getContext(false) != null) { // If we added the other query's context info as a subnode in this @@ -851,8 +852,7 @@ public class Query extends com.yahoo.processing.Request implements Cloneable { public boolean equals(Object other) { if (this == other) return true; - if ( ! (other instanceof Query)) return false; - Query q = (Query) other; + if ( ! (other instanceof Query q)) return false; if (getOffset() != q.getOffset()) return false; if (getHits() != q.getHits()) return false; @@ -929,7 +929,6 @@ public class Query extends com.yahoo.processing.Request implements Cloneable { /** * Prepares this for binary serialization. - * * This must be invoked after all changes have been made to this query before it is passed * on to a receiving backend. Calling it is somewhat expensive, so it should only happen once. * If a prepared query is cloned, it stays prepared. |