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
Modifier and TypeFieldDescriptionfinal Prepare.CatalogReader
final boolean
protected MutableRel
final TableModify.Operation
final RelOptTable
Fields inherited from class org.apache.calcite.rel.mutable.MutableRel
cluster, ordinalInParent, PAIRWISE_STRING_EQUIVALENCE, parent, rowType, STRING_EQUIVALENCE, type
-
Method Summary
Modifier and TypeMethodDescriptionvoid
childrenAccept
(MutableRelVisitor visitor) clone()
digest
(StringBuilder buf) boolean
getInput()
int
hashCode()
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.void
setInput
(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:
digest
in classMutableRel
-
clone
- Specified by:
clone
in classMutableRel
-
setInput
- Specified by:
setInput
in classMutableRel
-
getInputs
- Specified by:
getInputs
in classMutableRel
-
childrenAccept
- Specified by:
childrenAccept
in classMutableRel
-
getInput
-