本文整理了Java中com.github.shyiko.mysql.binlog.event.UpdateRowsEventData.getIncludedColumns()
方法的一些代码示例,展示了UpdateRowsEventData.getIncludedColumns()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UpdateRowsEventData.getIncludedColumns()
方法的具体详情如下:
包路径:com.github.shyiko.mysql.binlog.event.UpdateRowsEventData
类名称:UpdateRowsEventData
方法名:getIncludedColumns
暂无
代码示例来源: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: debezium/debezium
BitSet includedColumns = update.getIncludedColumns();
代码示例来源: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
Serializable[] oldData = e.getKey();
RowMap r = buildRowMap("update", position, nextPosition, data, table, updateRowsData().getIncludedColumns(), rowQuery);
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;
}
内容来源于网络,如有侵权,请联系作者删除!