com.github.shyiko.mysql.binlog.event.UpdateRowsEventData.getRows()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(141)

本文整理了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

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]

相关文章