public final class DmlAstUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
collectAllGridTablesInTarget(GridSqlElement from,
Set<GridSqlTable> tbls) |
static FastUpdate |
getFastDeleteArgs(GridSqlDelete del) |
static FastUpdate |
getFastUpdateArgs(GridSqlUpdate update) |
static GridSqlTable |
gridTableForElement(GridSqlElement target) |
static GridSqlSelect |
selectForDelete(GridSqlDelete del)
Generate SQL SELECT based on DELETE's WHERE, LIMIT, etc.
|
static GridSqlQuery |
selectForInsertOrMerge(GridSqlColumn[] cols,
List<GridSqlElement[]> rows,
GridSqlQuery subQry)
Create SELECT on which subsequent INSERT or MERGE will be based.
|
static GridSqlSelect |
selectForUpdate(GridSqlUpdate update)
Generate SQL SELECT based on UPDATE's WHERE, LIMIT, etc.
|
public static GridSqlQuery selectForInsertOrMerge(GridSqlColumn[] cols, List<GridSqlElement[]> rows, GridSqlQuery subQry)
cols - Columns to insert values into.rows - Rows to create pseudo-SELECT upon.subQry - Subquery to use rather than rows.null no query needs to be run.public static GridSqlSelect selectForDelete(GridSqlDelete del)
del - Delete statement.public static FastUpdate getFastUpdateArgs(GridSqlUpdate update)
update - UPDATE statement.null if given statement directly updates _val column with a literal or param value
and filters by single non expression key (and, optionally, by single non expression value).public static FastUpdate getFastDeleteArgs(GridSqlDelete del)
del - DELETE statement.true if given statement filters by single non expression key.public static GridSqlSelect selectForUpdate(GridSqlUpdate update)
update - Update statement.public static void collectAllGridTablesInTarget(GridSqlElement from, Set<GridSqlTable> tbls)
from - From element.tbls - Tables.public static GridSqlTable gridTableForElement(GridSqlElement target)
target - Expression to extract the table from.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.17-p1 Release Date : November 27 2025