本文整理了Java中com.github.shyiko.mysql.binlog.event.UpdateRowsEventData.getRows()
方法的一些代码示例,展示了UpdateRowsEventData.getRows()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UpdateRowsEventData.getRows()
方法的具体详情如下:
包路径:com.github.shyiko.mysql.binlog.event.UpdateRowsEventData
类名称:UpdateRowsEventData
方法名:getRows
暂无
代码示例来源:origin: apache/nifi
public UpdateRowsEventInfo(TableInfo tableInfo, Long timestamp, String binlogFilename, Long binlogPosition, UpdateRowsEventData data) {
super(tableInfo, UPDATE_EVENT, timestamp, binlogFilename, binlogPosition, data.getIncludedColumns(), data.getRows());
includedColumnsBeforeUpdate = data.getIncludedColumnsBeforeUpdate();
}
代码示例来源:origin: apache/rocketmq-externals
private void processUpdateEvent(Event event) {
UpdateRowsEventData data = event.getData();
Long tableId = data.getTableId();
List<Map.Entry<Serializable[], Serializable[]>> list = data.getRows();
for (Map.Entry<Serializable[], Serializable[]> entry : list) {
addRow("UPDATE", tableId, entry.getValue());
}
}
代码示例来源:origin: debezium/debezium
protected void assertRows(UpdateRowsEventData eventData, RowBuilder rows) {
assertThat(eventData.getRows().size()).isEqualTo(rows.rows().size());
for (Map.Entry<Serializable[], Serializable[]> row : eventData.getRows()) {
if (!rows.findUpdatedRow(row.getKey(), row.getValue())) {
fail("Failed to find updated row: " + eventData);
}
}
}
代码示例来源:origin: debezium/debezium
List<Entry<Serializable[], Serializable[]>> rows = update.getRows();
Long ts = context.getClock().currentTimeInMillis();
int count = 0;
代码示例来源:origin: zendesk/maxwell
case UPDATE_ROWS:
case EXT_UPDATE_ROWS:
for ( Map.Entry<Serializable[], Serializable[]> e : updateRowsData().getRows() ) {
Serializable[] data = e.getValue();
Serializable[] oldData = e.getKey();
代码示例来源:origin: org.apache.nifi/nifi-cdc-mysql-processors
public UpdateRowsEventInfo(TableInfo tableInfo, Long timestamp, String binlogFilename, Long binlogPosition, UpdateRowsEventData data) {
super(tableInfo, UPDATE_EVENT, timestamp, binlogFilename, binlogPosition, data.getIncludedColumns(), data.getRows());
includedColumnsBeforeUpdate = data.getIncludedColumnsBeforeUpdate();
}
代码示例来源:origin: io.debezium/debezium-connector-mysql
protected void assertRows(UpdateRowsEventData eventData, RowBuilder rows) {
assertThat(eventData.getRows().size()).isEqualTo(rows.rows().size());
for (Map.Entry<Serializable[], Serializable[]> row : eventData.getRows()) {
if (!rows.findUpdatedRow(row.getKey(), row.getValue())) {
fail("Failed to find updated row: " + eventData);
}
}
}
代码示例来源:origin: perfectsense/dari
d.getRows().stream().map(Map.Entry::getValue).forEach(row -> {
if (LOGGER.isInfoEnabled()) {
LOGGER.debug("Pending update: {}", StringUtils.hex((byte[]) row[0]));
代码示例来源:origin: perfectsense/dari
for (Map.Entry<Serializable[], Serializable[]> row : ((UpdateRowsEventData) eventData).getRows()) {
Serializable[] newValue = row.getValue();
byte[] data = newValue[2] instanceof byte[] ? (byte[]) newValue[2]
内容来源于网络,如有侵权,请联系作者删除!