Class MetadataColumn
- java.lang.Object
-
- org.apache.flink.cdc.common.schema.Column
-
- org.apache.flink.cdc.common.schema.MetadataColumn
-
- All Implemented Interfaces:
Serializable
@PublicEvolving public class MetadataColumn extends Column
Representation of a metadata column.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.flink.cdc.common.schema.Column
comment, defaultValueExpression, FIELD_FORMAT_NO_DESCRIPTION_NO_DEFAULT_VALUE_EXPRESSION, FIELD_FORMAT_NO_DESCRIPTION_WITH_DEFAULT_VALUE_EXPRESSION, FIELD_FORMAT_WITH_DESCRIPTION_NO_DEFAULT_VALUE_EXPRESSION, FIELD_FORMAT_WITH_DESCRIPTION_WITH_DEFAULT_VALUE_EXPRESSION, name, type
-
-
Constructor Summary
Constructors Constructor Description MetadataColumn(String name, DataType type, String metadataKey, String comment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Columncopy(String newName)Returns a copy of the column with a replaced name.Columncopy(DataType newType)Returns a copy of the column with a replacedDataType.booleanequals(Object o)StringgetMetadataKey()inthashCode()booleanisPhysical()Returns whether the given column is a physical column of a table or metadata column.-
Methods inherited from class org.apache.flink.cdc.common.schema.Column
asSummaryString, getComment, getDefaultValueExpression, getName, getType, metadataColumn, metadataColumn, metadataColumn, physicalColumn, physicalColumn, physicalColumn, toString
-
-
-
-
Method Detail
-
isPhysical
public boolean isPhysical()
Description copied from class:ColumnReturns whether the given column is a physical column of a table or metadata column.- Specified by:
isPhysicalin classColumn
-
copy
public Column copy(DataType newType)
Description copied from class:ColumnReturns a copy of the column with a replacedDataType.
-
copy
public Column copy(String newName)
Description copied from class:ColumnReturns a copy of the column with a replaced name.
-
-