Skip to content

Commit cea06ee

Browse files
dbeaver/pro#9047 added sql plan explain to CB (#4302)
* dbeaver/pro#9047 added sql plan explain to CB * dbeaver/pro#9047 added nullability annotations --------- Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
1 parent 0e402cd commit cea06ee

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLExecutionPlan.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package io.cloudbeaver.service.sql;
1818

1919
import io.cloudbeaver.model.session.WebSession;
20+
import org.jkiss.code.NotNull;
2021
import org.jkiss.dbeaver.Log;
2122
import org.jkiss.dbeaver.model.exec.plan.DBCPlan;
2223
import org.jkiss.dbeaver.model.exec.plan.DBCPlanCostNode;
@@ -32,14 +33,21 @@ public class WebSQLExecutionPlan {
3233

3334
private static final Log log = Log.getLog(WebSQLExecutionPlan.class);
3435

36+
@NotNull
3537
private final WebSession webSession;
38+
@NotNull
3639
private final DBCPlan plan;
3740

38-
public WebSQLExecutionPlan(WebSession webSession, DBCPlan plan) {
41+
public WebSQLExecutionPlan(@NotNull WebSession webSession, @NotNull DBCPlan plan) {
3942
this.webSession = webSession;
4043
this.plan = plan;
4144
}
4245

46+
@NotNull
47+
public DBCPlan getPlan() {
48+
return plan;
49+
}
50+
4351
public String getQuery() {
4452
return plan.getQueryString();
4553
}

0 commit comments

Comments
 (0)