public final class UpdatePlan extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UpdatePlan.DistributedPlanInfo
Additional information about distributed update plan.
|
| Modifier and Type | Field and Description |
|---|---|
String[] |
colNames
Column names to set or update.
|
int[] |
colTypes
Expected column types to set or insert/merge.
|
UpdatePlan.DistributedPlanInfo |
distributed
Additional info for distributed update.
|
FastUpdateArguments |
fastUpdateArgs
Arguments for fast UPDATE or DELETE.
|
boolean |
isLocSubqry
Subquery flag -
true if selectQry is an actual subquery that retrieves data from some cache. |
int |
keyColIdx
Index of key column, if it's explicitly mentioned in column list of MERGE or INSERT,
ignored for UPDATE and DELETE.
|
KeyValueSupplier |
keySupplier
Method to create key for INSERT or MERGE, ignored for UPDATE and DELETE.
|
UpdateMode |
mode
Initial statement to drive the rest of the logic.
|
int |
rowsNum
Number of rows in rows based MERGE or INSERT.
|
String |
selectQry
SELECT statement built upon initial DML statement.
|
GridH2Table |
tbl
Target table to be affected by initial DML statement.
|
int |
valColIdx
Index of value column, if it's explicitly mentioned in column list.
|
KeyValueSupplier |
valSupplier
Method to create value to put to cache, ignored for DELETE.
|
| Modifier and Type | Method and Description |
|---|---|
static UpdatePlan |
forDelete(GridH2Table tbl,
String selectQry,
UpdatePlan.DistributedPlanInfo distributed) |
static UpdatePlan |
forFastUpdate(UpdateMode mode,
GridH2Table tbl,
FastUpdateArguments fastUpdateArgs) |
static UpdatePlan |
forInsert(GridH2Table tbl,
String[] colNames,
int[] colTypes,
KeyValueSupplier keySupplier,
KeyValueSupplier valSupplier,
int keyColIdx,
int valColIdx,
String selectQry,
boolean isLocSubqry,
int rowsNum,
UpdatePlan.DistributedPlanInfo distributed) |
static UpdatePlan |
forMerge(GridH2Table tbl,
String[] colNames,
int[] colTypes,
KeyValueSupplier keySupplier,
KeyValueSupplier valSupplier,
int keyColIdx,
int valColIdx,
String selectQry,
boolean isLocSubqry,
int rowsNum,
UpdatePlan.DistributedPlanInfo distributed) |
static UpdatePlan |
forUpdate(GridH2Table tbl,
String[] colNames,
int[] colTypes,
KeyValueSupplier valSupplier,
int valColIdx,
String selectQry,
UpdatePlan.DistributedPlanInfo distributed) |
public final UpdateMode mode
public final GridH2Table tbl
public final String[] colNames
public final int[] colTypes
Valuepublic final KeyValueSupplier keySupplier
public final KeyValueSupplier valSupplier
public final int keyColIdx
public final int valColIdx
public final String selectQry
public final boolean isLocSubqry
true if selectQry is an actual subquery that retrieves data from some cache.public final int rowsNum
public final FastUpdateArguments fastUpdateArgs
public final UpdatePlan.DistributedPlanInfo distributed
public static UpdatePlan forMerge(GridH2Table tbl, String[] colNames, int[] colTypes, KeyValueSupplier keySupplier, KeyValueSupplier valSupplier, int keyColIdx, int valColIdx, String selectQry, boolean isLocSubqry, int rowsNum, UpdatePlan.DistributedPlanInfo distributed)
public static UpdatePlan forInsert(GridH2Table tbl, String[] colNames, int[] colTypes, KeyValueSupplier keySupplier, KeyValueSupplier valSupplier, int keyColIdx, int valColIdx, String selectQry, boolean isLocSubqry, int rowsNum, UpdatePlan.DistributedPlanInfo distributed)
public static UpdatePlan forUpdate(GridH2Table tbl, String[] colNames, int[] colTypes, KeyValueSupplier valSupplier, int valColIdx, String selectQry, UpdatePlan.DistributedPlanInfo distributed)
public static UpdatePlan forDelete(GridH2Table tbl, String selectQry, UpdatePlan.DistributedPlanInfo distributed)
public static UpdatePlan forFastUpdate(UpdateMode mode, GridH2Table tbl, FastUpdateArguments fastUpdateArgs)
Follow @ApacheIgnite
Ignite Fabric : ver. 2.3.0 Release Date : October 28 2017