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(); }
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()); } }
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); } } }
List<Entry<Serializable[], Serializable[]>> rows = update.getRows(); Long ts = context.getClock().currentTimeInMillis(); int count = 0;
case UPDATE_ROWS: case EXT_UPDATE_ROWS: for ( Map.Entry<Serializable[], Serializable[]> e : updateRowsData().getRows() ) { Serializable[] data = e.getValue(); Serializable[] oldData = e.getKey();
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(); }
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); } } }
d.getRows().stream().map(Map.Entry::getValue).forEach(row -> { if (LOGGER.isInfoEnabled()) { LOGGER.debug("Pending update: {}", StringUtils.hex((byte[]) row[0]));
for (Map.Entry<Serializable[], Serializable[]> row : ((UpdateRowsEventData) eventData).getRows()) { Serializable[] newValue = row.getValue(); byte[] data = newValue[2] instanceof byte[] ? (byte[]) newValue[2]