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

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

本文整理了Java中com.github.shyiko.mysql.binlog.event.UpdateRowsEventData.getIncludedColumnsBeforeUpdate()方法的一些代码示例,展示了UpdateRowsEventData.getIncludedColumnsBeforeUpdate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UpdateRowsEventData.getIncludedColumnsBeforeUpdate()方法的具体详情如下:
包路径:com.github.shyiko.mysql.binlog.event.UpdateRowsEventData
类名称:UpdateRowsEventData
方法名:getIncludedColumnsBeforeUpdate

UpdateRowsEventData.getIncludedColumnsBeforeUpdate介绍

暂无

代码示例

代码示例来源: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: shyiko/mysql-binlog-connector-java

private List<Map.Entry<Serializable[], Serializable[]>> deserializeRows(UpdateRowsEventData eventData,
    ByteArrayInputStream inputStream) throws IOException {
  long tableId = eventData.getTableId();
  BitSet includedColumnsBeforeUpdate = eventData.getIncludedColumnsBeforeUpdate(),
      includedColumns = eventData.getIncludedColumns();
  List<Map.Entry<Serializable[], Serializable[]>> rows =
      new ArrayList<Map.Entry<Serializable[], Serializable[]>>();
  while (inputStream.available() > 0) {
    rows.add(new AbstractMap.SimpleEntry<Serializable[], Serializable[]>(
        deserializeRow(tableId, includedColumnsBeforeUpdate, inputStream),
        deserializeRow(tableId, includedColumns, inputStream)
    ));
  }
  return rows;
}

代码示例来源:origin: zendesk/maxwell

writeOldData(table, r, oldData, updateRowsData().getIncludedColumnsBeforeUpdate());
list.add(r);

代码示例来源: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: perfectsense/dari

private List<Map.Entry<Serializable[], Serializable[]>> deserializeRows(UpdateRowsEventData eventData,
    ByteArrayInputStream inputStream) throws IOException {
  long tableId = eventData.getTableId();
  BitSet includedColumnsBeforeUpdate = eventData.getIncludedColumnsBeforeUpdate(),
      includedColumns = eventData.getIncludedColumns();
  List<Map.Entry<Serializable[], Serializable[]>> rows =
      new ArrayList<Map.Entry<Serializable[], Serializable[]>>();
  while (inputStream.available() > 0) {
    rows.add(new AbstractMap.SimpleEntry<Serializable[], Serializable[]>(
        deserializeRow(tableId, includedColumnsBeforeUpdate, inputStream),
        deserializeRow(tableId, includedColumns, inputStream)
    ));
  }
  return rows;
}

相关文章