@PublicEvolving public class DataChangeEvent extends Object implements ChangeEvent, Serializable
DataChangeEvent represents the data change events of external systems, such as
INSERT, UPDATE, DELETE and so on.| 限定符和类型 | 方法和说明 |
|---|---|
RecordData |
after() |
RecordData |
before() |
static DataChangeEvent |
deleteEvent(TableId tableId,
RecordData before)
Creates a
DataChangeEvent instance that describes the delete event. |
static DataChangeEvent |
deleteEvent(TableId tableId,
RecordData before,
Map<String,String> meta)
Creates a
DataChangeEvent instance that describes the delete event with meta info. |
String |
describeMeta()
Creates a string to describe the information of meta.
|
boolean |
equals(Object o) |
int |
hashCode() |
static DataChangeEvent |
insertEvent(TableId tableId,
RecordData after)
Creates a
DataChangeEvent instance that describes the insert event. |
static DataChangeEvent |
insertEvent(TableId tableId,
RecordData after,
Map<String,String> meta)
Creates a
DataChangeEvent instance that describes the insert event with meta info. |
Map<String,String> |
meta() |
OperationType |
op() |
static DataChangeEvent |
projectAfter(DataChangeEvent dataChangeEvent,
RecordData projectedAfter)
Updates the after of a
DataChangeEvent instance that describes the event with meta
info. |
static DataChangeEvent |
projectBefore(DataChangeEvent dataChangeEvent,
RecordData projectedBefore)
Updates the before of a
DataChangeEvent instance that describes the event with meta
info. |
static DataChangeEvent |
replaceEvent(TableId tableId,
RecordData after)
Creates a
DataChangeEvent instance that describes the replace event. |
static DataChangeEvent |
replaceEvent(TableId tableId,
RecordData after,
Map<String,String> meta)
Creates a
DataChangeEvent instance that describes the replace event with meta info. |
static DataChangeEvent |
route(DataChangeEvent dataChangeEvent,
TableId tableId)
Updates the
TableId info of current data change event. |
TableId |
tableId()
Describes the database table corresponding to the occurrence of a change event.
|
String |
toString() |
static DataChangeEvent |
updateEvent(TableId tableId,
RecordData before,
RecordData after)
Creates a
DataChangeEvent instance that describes the update event. |
static DataChangeEvent |
updateEvent(TableId tableId,
RecordData before,
RecordData after,
Map<String,String> meta)
Creates a
DataChangeEvent instance that describes the update event with meta info. |
public TableId tableId()
ChangeEventtableId 在接口中 ChangeEventpublic RecordData before()
public RecordData after()
public OperationType op()
public static DataChangeEvent insertEvent(TableId tableId, RecordData after)
DataChangeEvent instance that describes the insert event.public static DataChangeEvent insertEvent(TableId tableId, RecordData after, Map<String,String> meta)
DataChangeEvent instance that describes the insert event with meta info.public static DataChangeEvent deleteEvent(TableId tableId, RecordData before)
DataChangeEvent instance that describes the delete event.public static DataChangeEvent deleteEvent(TableId tableId, RecordData before, Map<String,String> meta)
DataChangeEvent instance that describes the delete event with meta info.public static DataChangeEvent updateEvent(TableId tableId, RecordData before, RecordData after)
DataChangeEvent instance that describes the update event.public static DataChangeEvent updateEvent(TableId tableId, RecordData before, RecordData after, Map<String,String> meta)
DataChangeEvent instance that describes the update event with meta info.public static DataChangeEvent replaceEvent(TableId tableId, RecordData after)
DataChangeEvent instance that describes the replace event.public static DataChangeEvent replaceEvent(TableId tableId, RecordData after, Map<String,String> meta)
DataChangeEvent instance that describes the replace event with meta info.public static DataChangeEvent projectBefore(DataChangeEvent dataChangeEvent, RecordData projectedBefore)
DataChangeEvent instance that describes the event with meta
info.public static DataChangeEvent projectAfter(DataChangeEvent dataChangeEvent, RecordData projectedAfter)
DataChangeEvent instance that describes the event with meta
info.public static DataChangeEvent route(DataChangeEvent dataChangeEvent, TableId tableId)
TableId info of current data change event.public String describeMeta()
Copyright © 2025 The Apache Software Foundation. All rights reserved.