@PublicEvolving public class AlterColumnTypeEvent extends Object implements SchemaChangeEventWithPreSchema, SchemaChangeEvent
SchemaChangeEvent that represents an ALTER COLUMN DDL, which may contain the
lenient column type changes.| 构造器和说明 |
|---|
AlterColumnTypeEvent(TableId tableId,
Map<String,DataType> typeMapping) |
AlterColumnTypeEvent(TableId tableId,
Map<String,DataType> typeMapping,
Map<String,DataType> oldTypeMapping) |
| 限定符和类型 | 方法和说明 |
|---|---|
SchemaChangeEvent |
copy(TableId newTableId)
Creates a copy of
SchemaChangeEvent with new TableId. |
boolean |
equals(Object o) |
void |
fillPreSchema(Schema oldTypeSchema)
Append schema before change info to this event.
|
Map<String,DataType> |
getOldTypeMapping() |
SchemaChangeEventType |
getType()
Returns its
SchemaChangeEventType. |
Map<String,DataType> |
getTypeMapping()
Returns the type mapping.
|
int |
hashCode() |
boolean |
hasPreSchema()
Describes if this event already has schema before change info.
|
TableId |
tableId()
Describes the database table corresponding to the occurrence of a change event.
|
String |
toString() |
boolean |
trimRedundantChanges()
Check if this event contains redundant schema change request only.
|
public TableId tableId()
ChangeEventtableId 在接口中 ChangeEventpublic boolean hasPreSchema()
SchemaChangeEventWithPreSchemahasPreSchema 在接口中 SchemaChangeEventWithPreSchemapublic void fillPreSchema(Schema oldTypeSchema)
SchemaChangeEventWithPreSchemafillPreSchema 在接口中 SchemaChangeEventWithPreSchemapublic boolean trimRedundantChanges()
SchemaChangeEventWithPreSchemapublic SchemaChangeEventType getType()
SchemaChangeEventSchemaChangeEventType.getType 在接口中 SchemaChangeEventpublic SchemaChangeEvent copy(TableId newTableId)
SchemaChangeEventSchemaChangeEvent with new TableId.copy 在接口中 SchemaChangeEventCopyright © 2025 The Apache Software Foundation. All rights reserved.