Package org.apache.flink.table.catalog
Class Column.ComputedColumn
- java.lang.Object
-
- org.apache.flink.table.catalog.Column
-
- org.apache.flink.table.catalog.Column.ComputedColumn
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.table.catalog.Column
Column.ComputedColumn, Column.MetadataColumn, Column.PhysicalColumn
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Columncopy(DataType newDataType)Returns a copy of the column with a replacedDataType.booleanequals(Object o)Optional<String>explainExtras()Returns an explanation of specific column extras next to name and type.ResolvedExpressiongetExpression()inthashCode()booleanisPersisted()Returns whether the given column is persisted in a sink operation.booleanisPhysical()Returns whether the given column is a physical column of a table; neither computed nor metadata.Columnrename(String newName)Returns a copy of the column with a replaced name.Column.ComputedColumnwithComment(String comment)Add the comment to the column and return the new object.-
Methods inherited from class org.apache.flink.table.catalog.Column
asSummaryString, computed, getComment, getDataType, getName, metadata, physical, toString
-
-
-
-
Method Detail
-
withComment
public Column.ComputedColumn withComment(String comment)
Description copied from class:ColumnAdd the comment to the column and return the new object.- Specified by:
withCommentin classColumn
-
isPhysical
public boolean isPhysical()
Description copied from class:ColumnReturns whether the given column is a physical column of a table; neither computed nor metadata.- Specified by:
isPhysicalin classColumn
-
isPersisted
public boolean isPersisted()
Description copied from class:ColumnReturns whether the given column is persisted in a sink operation.- Specified by:
isPersistedin classColumn
-
getExpression
public ResolvedExpression getExpression()
-
explainExtras
public Optional<String> explainExtras()
Description copied from class:ColumnReturns an explanation of specific column extras next to name and type.- Specified by:
explainExtrasin classColumn
-
copy
public Column copy(DataType newDataType)
Description copied from class:ColumnReturns a copy of the column with a replacedDataType.
-
rename
public Column rename(String newName)
Description copied from class:ColumnReturns a copy of the column with a replaced name.
-
-