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>
This commit is contained in:
Dmitrii Barnukov
2026-04-28 15:15:57 +02:00
committed by GitHub
co-authored by Evgenia
parent 0e402cd27d
commit cea06eecae
@@ -17,6 +17,7 @@
package io.cloudbeaver.service.sql;
import io.cloudbeaver.model.session.WebSession;
import org.jkiss.code.NotNull;
import org.jkiss.dbeaver.Log;
import org.jkiss.dbeaver.model.exec.plan.DBCPlan;
import org.jkiss.dbeaver.model.exec.plan.DBCPlanCostNode;
@@ -32,14 +33,21 @@ public class WebSQLExecutionPlan {
private static final Log log = Log.getLog(WebSQLExecutionPlan.class);
@NotNull
private final WebSession webSession;
@NotNull
private final DBCPlan plan;
public WebSQLExecutionPlan(WebSession webSession, DBCPlan plan) {
public WebSQLExecutionPlan(@NotNull WebSession webSession, @NotNull DBCPlan plan) {
this.webSession = webSession;
this.plan = plan;
}
@NotNull
public DBCPlan getPlan() {
return plan;
}
public String getQuery() {
return plan.getQueryString();
}