Package org.apache.calcite.rel.mutable
Class MutableTableModify
- java.lang.Object
-
- org.apache.calcite.rel.mutable.MutableRel
-
- org.apache.calcite.rel.mutable.MutableSingleRel
-
- org.apache.calcite.rel.mutable.MutableTableModify
-
public class MutableTableModify extends MutableSingleRel
Mutable equivalent ofTableModify
.
-
-
Field Summary
Fields Modifier and Type Field Description Prepare.CatalogReader
catalogReader
boolean
flattened
TableModify.Operation
operation
java.util.List<RexNode>
sourceExpressionList
RelOptTable
table
java.util.List<java.lang.String>
updateColumnList
-
Fields inherited from class org.apache.calcite.rel.mutable.MutableSingleRel
input
-
Fields inherited from class org.apache.calcite.rel.mutable.MutableRel
cluster, ordinalInParent, PAIRWISE_STRING_EQUIVALENCE, parent, rowType, STRING_EQUIVALENCE, type
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MutableTableModify(RelDataType rowType, MutableRel input, RelOptTable table, Prepare.CatalogReader catalogReader, TableModify.Operation operation, java.util.List<java.lang.String> updateColumnList, java.util.List<RexNode> sourceExpressionList, boolean flattened)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableRel
clone()
java.lang.StringBuilder
digest(java.lang.StringBuilder buf)
boolean
equals(java.lang.Object obj)
int
hashCode()
static MutableTableModify
of(RelDataType rowType, MutableRel input, RelOptTable table, Prepare.CatalogReader catalogReader, TableModify.Operation operation, java.util.List<java.lang.String> updateColumnList, java.util.List<RexNode> sourceExpressionList, boolean flattened)
Creates a MutableTableModify.-
Methods inherited from class org.apache.calcite.rel.mutable.MutableSingleRel
childrenAccept, getInput, getInputs, setInput
-
Methods inherited from class org.apache.calcite.rel.mutable.MutableRel
deep, getParent, replaceInParent, toString
-
-
-
-
Field Detail
-
catalogReader
public final Prepare.CatalogReader catalogReader
-
table
public final RelOptTable table
-
operation
public final TableModify.Operation operation
-
updateColumnList
public final java.util.List<java.lang.String> updateColumnList
-
sourceExpressionList
public final java.util.List<RexNode> sourceExpressionList
-
flattened
public final boolean flattened
-
-
Constructor Detail
-
MutableTableModify
private MutableTableModify(RelDataType rowType, MutableRel input, RelOptTable table, Prepare.CatalogReader catalogReader, TableModify.Operation operation, java.util.List<java.lang.String> updateColumnList, java.util.List<RexNode> sourceExpressionList, boolean flattened)
-
-
Method Detail
-
of
public static MutableTableModify of(RelDataType rowType, MutableRel input, RelOptTable table, Prepare.CatalogReader catalogReader, TableModify.Operation operation, java.util.List<java.lang.String> updateColumnList, java.util.List<RexNode> sourceExpressionList, boolean flattened)
Creates a MutableTableModify.- Parameters:
rowType
- Row typeinput
- Input relational expressiontable
- Target table to modifycatalogReader
- Accessor to the table metadataoperation
- Modify operation (INSERT, UPDATE, DELETE)updateColumnList
- List of column identifiers to be updated (e.g. ident1, ident2); null if not UPDATEsourceExpressionList
- List of value expressions to be set (e.g. exp1, exp2); null if not UPDATEflattened
- Whether set flattens the input row type
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
digest
public java.lang.StringBuilder digest(java.lang.StringBuilder buf)
- Specified by:
digest
in classMutableRel
-
clone
public MutableRel clone()
- Specified by:
clone
in classMutableRel
-
-