Class AbstractWriteRel

All Implemented Interfaces:
HasExtension, Rel
Direct Known Subclasses:
ExtensionWrite, NamedWrite

public abstract class AbstractWriteRel extends SingleInputRel implements HasExtension
Base class for write relations with a single input.

Defines table schema, write operation, create mode, and output mode.

  • Constructor Details

    • AbstractWriteRel

      public AbstractWriteRel()
  • Method Details

    • getTableSchema

      public abstract NamedStruct getTableSchema()
      Returns the target table schema (names + types).
      Returns:
      target table NamedStruct
    • getOperation

      public abstract AbstractWriteRel.WriteOp getOperation()
      Returns the write operation (insert/delete/update/ctas).
      Returns:
      write operation
    • getCreateMode

      public abstract AbstractWriteRel.CreateMode getCreateMode()
      Returns the table creation behavior when the target exists.
      Returns:
      create mode
    • getOutputMode

      public abstract AbstractWriteRel.OutputMode getOutputMode()
      Returns the output behavior of the write (e.g., rows returned).
      Returns:
      output mode
    • deriveRecordType

      public Type.Struct deriveRecordType()
      Derives the output record type from the input relation.
      Specified by:
      deriveRecordType in class AbstractRel
      Returns:
      input record Type.Struct