Package org.apache.calcite.rel.logical
Class LogicalTableModify
java.lang.Object
org.apache.calcite.rel.AbstractRelNode
org.apache.calcite.rel.SingleRel
org.apache.calcite.rel.core.TableModify
org.apache.calcite.rel.logical.LogicalTableModify
- All Implemented Interfaces:
Cloneable,RelOptNode,RelNode
Sub-class of
TableModify
not targeted at any particular engine or calling convention.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.rel.core.TableModify
TableModify.OperationNested classes/interfaces inherited from interface org.apache.calcite.rel.RelNode
RelNode.Context -
Field Summary
Fields inherited from class org.apache.calcite.rel.core.TableModify
catalogReader, tableFields inherited from class org.apache.calcite.rel.AbstractRelNode
digest, id, rowType, traitSet -
Constructor Summary
ConstructorsConstructorDescriptionLogicalTableModify(RelOptCluster cluster, RelOptTable table, Prepare.CatalogReader schema, RelNode input, TableModify.Operation operation, List<String> updateColumnList, boolean flattened) Deprecated.LogicalTableModify(RelOptCluster cluster, RelTraitSet traitSet, RelOptTable table, Prepare.CatalogReader schema, RelNode input, TableModify.Operation operation, @Nullable List<String> updateColumnList, @Nullable List<RexNode> sourceExpressionList, boolean flattened) Creates a LogicalTableModify.LogicalTableModify(RelInput input) Creates a LogicalTableModify by parsing serialized output. -
Method Summary
Modifier and TypeMethodDescriptionaccept(RelShuttle shuttle) Accepts a visit from a shuttle.copy(RelTraitSet traitSet, List<RelNode> inputs) Creates a copy of this relational expression, perhaps changing traits and inputs.static LogicalTableModifycreate(RelOptTable table, Prepare.CatalogReader schema, RelNode input, TableModify.Operation operation, @Nullable List<String> updateColumnList, @Nullable List<RexNode> sourceExpressionList, boolean flattened) Creates a LogicalTableModify.Methods inherited from class org.apache.calcite.rel.core.TableModify
computeSelfCost, deriveRowType, explainTerms, getCatalogReader, getExpectedInputRowType, getOperation, getSourceExpressionList, getTable, getUpdateColumnList, isDelete, isFlattened, isInsert, isMerge, isUpdateMethods inherited from class org.apache.calcite.rel.SingleRel
childrenAccept, estimateRowCount, getInput, getInputs, replaceInputMethods inherited from class org.apache.calcite.rel.AbstractRelNode
accept, collectVariablesSet, collectVariablesUsed, deepEquals, deepHashCode, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getId, getInput, getRelDigest, getRelTypeName, getRowType, getTraitSet, getVariablesSet, hashCode, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.rel.RelNode
explain, fieldIsNullable, stripped
-
Constructor Details
-
LogicalTableModify
public LogicalTableModify(RelOptCluster cluster, RelTraitSet traitSet, RelOptTable table, Prepare.CatalogReader schema, RelNode input, TableModify.Operation operation, @Nullable List<String> updateColumnList, @Nullable List<RexNode> sourceExpressionList, boolean flattened) Creates a LogicalTableModify.Use
create(org.apache.calcite.plan.RelOptTable, org.apache.calcite.prepare.Prepare.CatalogReader, org.apache.calcite.rel.RelNode, org.apache.calcite.rel.core.TableModify.Operation, java.util.List<java.lang.String>, java.util.List<org.apache.calcite.rex.RexNode>, boolean)unless you know what you're doing. -
LogicalTableModify
Creates a LogicalTableModify by parsing serialized output. -
LogicalTableModify
@Deprecated public LogicalTableModify(RelOptCluster cluster, RelOptTable table, Prepare.CatalogReader schema, RelNode input, TableModify.Operation operation, List<String> updateColumnList, boolean flattened) Deprecated.
-
-
Method Details
-
create
public static LogicalTableModify create(RelOptTable table, Prepare.CatalogReader schema, RelNode input, TableModify.Operation operation, @Nullable List<String> updateColumnList, @Nullable List<RexNode> sourceExpressionList, boolean flattened) Creates a LogicalTableModify. -
copy
Description copied from interface:RelNodeCreates a copy of this relational expression, perhaps changing traits and inputs.Sub-classes with other important attributes are encouraged to create variants of this method with more parameters.
- Specified by:
copyin interfaceRelNode- Overrides:
copyin classAbstractRelNode- Parameters:
traitSet- Trait setinputs- Inputs- Returns:
- Copy of this relational expression, substituting traits and inputs
-
accept
Description copied from interface:RelNodeAccepts a visit from a shuttle.- Specified by:
acceptin interfaceRelNode- Overrides:
acceptin classAbstractRelNode- Parameters:
shuttle- Shuttle- Returns:
- A copy of this node incorporating changes made by the shuttle to this node's children
-