Package io.substrait.relation
Class AbstractDdlRel
java.lang.Object
io.substrait.relation.AbstractRel
io.substrait.relation.ZeroInputRel
io.substrait.relation.AbstractDdlRel
- All Implemented Interfaces:
HasExtension,Rel
- Direct Known Subclasses:
ExtensionDdl,NamedDdl
Base class for DDL relations with no inputs.
Defines schema/defaults, DDL object and operation, and optional view definition.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDDL object kinds.static enumDDL operations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDerives the output record type from the declared schema.abstract AbstractDdlRel.DdlObjectReturns the DDL object kind (table or view).abstract AbstractDdlRel.DdlOpReturns the DDL operation (create/alter/drop, etc.).abstract Expression.StructLiteralReturns default values for the table columns.abstract NamedStructReturns the target table/view schema (names + types).Returns the view definition when the object is a view.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
-
AbstractDdlRel
public AbstractDdlRel()
-
-
Method Details
-
getTableSchema
Returns the target table/view schema (names + types).- Returns:
- target
NamedStruct
-
getTableDefaults
Returns default values for the table columns.- Returns:
- defaults as
Expression.StructLiteral
-
getObject
Returns the DDL object kind (table or view).- Returns:
- DDL object
-
getOperation
Returns the DDL operation (create/alter/drop, etc.).- Returns:
- DDL operation
-
getViewDefinition
Returns the view definition when the object is a view.- Returns:
- optional view definition relation
-
deriveRecordType
Derives the output record type from the declared schema.- Specified by:
deriveRecordTypein classAbstractRel- Returns:
Type.StructfromgetTableSchema()
-