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
-
- Enclosing class:
- Column
@PublicEvolving public static final class Column.ComputedColumn extends Column
Representation of a computed column.
-
-
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 Column
copy(DataType newDataType)
Returns a copy of the column with a replacedDataType
.boolean
equals(Object o)
Optional<String>
explainExtras()
Returns an explanation of specific column extras next to name and type.ResolvedExpression
getExpression()
int
hashCode()
boolean
isPersisted()
Returns whether the given column is persisted in a sink operation.boolean
isPhysical()
Returns whether the given column is a physical column of a table; neither computed nor metadata.Column.ComputedColumn
withComment(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:Column
Add the comment to the column and return the new object.- Specified by:
withComment
in classColumn
-
isPhysical
public boolean isPhysical()
Description copied from class:Column
Returns whether the given column is a physical column of a table; neither computed nor metadata.- Specified by:
isPhysical
in classColumn
-
isPersisted
public boolean isPersisted()
Description copied from class:Column
Returns whether the given column is persisted in a sink operation.- Specified by:
isPersisted
in classColumn
-
getExpression
public ResolvedExpression getExpression()
-
explainExtras
public Optional<String> explainExtras()
Description copied from class:Column
Returns an explanation of specific column extras next to name and type.- Specified by:
explainExtras
in classColumn
-
copy
public Column copy(DataType newDataType)
Description copied from class:Column
Returns a copy of the column with a replacedDataType
.
-
-