Package io.substrait.relation
Class AbstractWriteRel
java.lang.Object
io.substrait.relation.AbstractRel
io.substrait.relation.SingleInputRel
io.substrait.relation.AbstractWriteRel
- All Implemented Interfaces:
HasExtension,Rel
- Direct Known Subclasses:
ExtensionWrite,NamedWrite
Base class for write relations with a single input.
Defines table schema, write operation, create mode, and output mode.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumBehavior when the target table already exists.static enumOutput behavior for write operations.static enumLogical write operation kinds. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDerives the output record type from the input relation.abstract AbstractWriteRel.CreateModeReturns the table creation behavior when the target exists.abstract AbstractWriteRel.WriteOpReturns the write operation (insert/delete/update/ctas).abstract AbstractWriteRel.OutputModeReturns the output behavior of the write (e.g., rows returned).abstract NamedStructReturns the target table schema (names + types).Methods inherited from class io.substrait.relation.SingleInputRel
getInput, 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
-
AbstractWriteRel
public AbstractWriteRel()
-
-
Method Details
-
getTableSchema
Returns the target table schema (names + types).- Returns:
- target table
NamedStruct
-
getOperation
Returns the write operation (insert/delete/update/ctas).- Returns:
- write operation
-
getCreateMode
Returns the table creation behavior when the target exists.- Returns:
- create mode
-
getOutputMode
Returns the output behavior of the write (e.g., rows returned).- Returns:
- output mode
-
deriveRecordType
Derives the output record type from the input relation.- Specified by:
deriveRecordTypein classAbstractRel- Returns:
- input record
Type.Struct
-