Package io.substrait.relation
Class AbstractUpdate
java.lang.Object
io.substrait.relation.AbstractRel
io.substrait.relation.ZeroInputRel
io.substrait.relation.AbstractUpdate
- All Implemented Interfaces:
HasExtension,Rel
- Direct Known Subclasses:
NamedUpdate
Represents an update operation on a table.
Defines the target schema, update condition, and column transformations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a transformation applied to a specific column during an update. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDerives the output record type from the table schema.abstract ExpressionReturns the condition that determines which rows to update.abstract NamedStructReturns the schema of the target table.abstract List<AbstractUpdate.TransformExpression>Returns the list of column transformations to apply.Methods inherited from class io.substrait.relation.ZeroInputRel
getInputsMethods inherited from class io.substrait.relation.AbstractRel
getRecordTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.substrait.relation.HasExtension
getExtensionMethods inherited from interface io.substrait.relation.Rel
accept, getCommonExtension, getHint, getRemap
-
Constructor Details
-
AbstractUpdate
public AbstractUpdate()
-
-
Method Details
-
getTableSchema
Returns the schema of the target table.- Returns:
- table schema as
NamedStruct
-
getCondition
Returns the condition that determines which rows to update.- Returns:
- update condition expression
-
getTransformations
Returns the list of column transformations to apply.- Returns:
- list of
AbstractUpdate.TransformExpression
-
deriveRecordType
Derives the output record type from the table schema.- Specified by:
deriveRecordTypein classAbstractRel- Returns:
Type.Structbased ongetTableSchema()
-