@PublicEvolving public final class AddColumnEvent extends Object implements SchemaChangeEvent
SchemaChangeEvent that represents an ADD COLUMN DDL, which may contain the
lenient column type changes.| 限定符和类型 | 类和说明 |
|---|---|
static class |
AddColumnEvent.ColumnPosition
relative Position of column.
|
static class |
AddColumnEvent.ColumnWithPosition
represents result of an ADD COLUMN DDL that may change column sequence.
|
| 构造器和说明 |
|---|
AddColumnEvent(TableId tableId,
List<AddColumnEvent.ColumnWithPosition> addedColumns) |
| 限定符和类型 | 方法和说明 |
|---|---|
static AddColumnEvent.ColumnWithPosition |
after(Column addColumn,
String existedColumnName) |
static AddColumnEvent.ColumnWithPosition |
before(Column addColumn,
String existedColumnName) |
SchemaChangeEvent |
copy(TableId newTableId)
Creates a copy of
SchemaChangeEvent with new TableId. |
boolean |
equals(Object o) |
static AddColumnEvent.ColumnWithPosition |
first(Column addColumn) |
List<AddColumnEvent.ColumnWithPosition> |
getAddedColumns()
Returns the added columns.
|
SchemaChangeEventType |
getType()
Returns its
SchemaChangeEventType. |
int |
hashCode() |
static AddColumnEvent.ColumnWithPosition |
last(Column addColumn) |
TableId |
tableId()
Describes the database table corresponding to the occurrence of a change event.
|
String |
toString() |
public AddColumnEvent(TableId tableId, List<AddColumnEvent.ColumnWithPosition> addedColumns)
public static AddColumnEvent.ColumnWithPosition first(Column addColumn)
public static AddColumnEvent.ColumnWithPosition last(Column addColumn)
public static AddColumnEvent.ColumnWithPosition before(Column addColumn, String existedColumnName)
public static AddColumnEvent.ColumnWithPosition after(Column addColumn, String existedColumnName)
public List<AddColumnEvent.ColumnWithPosition> getAddedColumns()
public TableId tableId()
ChangeEventtableId 在接口中 ChangeEventpublic SchemaChangeEventType getType()
SchemaChangeEventSchemaChangeEventType.getType 在接口中 SchemaChangeEventpublic SchemaChangeEvent copy(TableId newTableId)
SchemaChangeEventSchemaChangeEvent with new TableId.copy 在接口中 SchemaChangeEventCopyright © 2025 The Apache Software Foundation. All rights reserved.