Class UpdatePlanBuilder
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.dml.UpdatePlanBuilder
-
public final class UpdatePlanBuilder extends Object
Logic for building update plans performed byDmlStatementsProcessor.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UpdatePlanplanForBulkLoad(SqlBulkLoadCommand cmd, GridH2Table tbl)Prepare update plan for COPY command (AKA bulk load).static UpdatePlanplanForStatement(QueryDescriptor planKey, GridSqlStatement stmt, IgniteH2Indexing idx, IgniteLogger log, boolean forceFillAbsentPKsWithDefaults)Generate SELECT statements to retrieve data for modifications from and find fast UPDATE or DELETE args, if available.
-
-
-
Method Detail
-
planForStatement
public static UpdatePlan planForStatement(QueryDescriptor planKey, GridSqlStatement stmt, IgniteH2Indexing idx, IgniteLogger log, boolean forceFillAbsentPKsWithDefaults) throws IgniteCheckedException
Generate SELECT statements to retrieve data for modifications from and find fast UPDATE or DELETE args, if available.- Parameters:
planKey- Plan key.stmt- Statement.idx- Indexing.forceFillAbsentPKsWithDefaults- ForceFillAbsentPKsWithDefaults enabled flag.- Returns:
- Update plan.
- Throws:
IgniteCheckedException
-
planForBulkLoad
public static UpdatePlan planForBulkLoad(SqlBulkLoadCommand cmd, GridH2Table tbl) throws IgniteCheckedException
Prepare update plan for COPY command (AKA bulk load).- Parameters:
cmd- Bulk load command- Returns:
- The update plan for this command.
- Throws:
IgniteCheckedException- if failed.
-
-