Package org.apache.calcite.rel.mutable
Class MutableTableModify
java.lang.Object
org.apache.calcite.rel.mutable.MutableRel
org.apache.calcite.rel.mutable.MutableTableModify
Mutable equivalent of
TableModify.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Prepare.CatalogReaderfinal booleanprotected MutableRelfinal TableModify.Operationfinal RelOptTableFields inherited from class org.apache.calcite.rel.mutable.MutableRel
cluster, ordinalInParent, PAIRWISE_STRING_EQUIVALENCE, parent, rowType, STRING_EQUIVALENCE, type -
Method Summary
Modifier and TypeMethodDescriptionvoidchildrenAccept(MutableRelVisitor visitor) clone()digest(StringBuilder buf) booleangetInput()inthashCode()static MutableTableModifyof(RelDataType rowType, MutableRel input, RelOptTable table, Prepare.CatalogReader catalogReader, TableModify.Operation operation, @Nullable List<String> updateColumnList, @Nullable List<RexNode> sourceExpressionList, boolean flattened) Creates a MutableTableModify.voidsetInput(int ordinalInParent, MutableRel input) Methods inherited from class org.apache.calcite.rel.mutable.MutableRel
deep, getParent, replaceInParent, toString
-
Field Details
-
catalogReader
-
table
-
operation
-
updateColumnList
-
sourceExpressionList
-
flattened
public final boolean flattened -
input
-
-
Method Details
-
of
public static MutableTableModify of(RelDataType rowType, MutableRel input, RelOptTable table, Prepare.CatalogReader catalogReader, TableModify.Operation operation, @Nullable List<String> updateColumnList, @Nullable 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
-
hashCode
public int hashCode() -
digest
- Specified by:
digestin classMutableRel
-
clone
- Specified by:
clonein classMutableRel
-
setInput
- Specified by:
setInputin classMutableRel
-
getInputs
- Specified by:
getInputsin classMutableRel
-
childrenAccept
- Specified by:
childrenAcceptin classMutableRel
-
getInput
-