com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd Java Examples
The following examples show how to use
com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LogEventConvert.java From canal-1.1.3 with Apache License 2.0 | 4 votes |
private Entry parseXidEvent(XidLogEvent event) { TransactionEnd transactionEnd = createTransactionEnd(event.getXid()); Header header = createHeader(event.getHeader(), "", "", null); return createEntry(header, EntryType.TRANSACTIONEND, transactionEnd.toByteString()); }
Example #2
Source File: LogEventConvert.java From canal-1.1.3 with Apache License 2.0 | 4 votes |
public static TransactionEnd createTransactionEnd(long transactionId) { TransactionEnd.Builder endBuilder = TransactionEnd.newBuilder(); endBuilder.setTransactionId(String.valueOf(transactionId)); return endBuilder.build(); }
Example #3
Source File: LogEventConvert.java From DBus with Apache License 2.0 | 4 votes |
private Entry parseXidEvent(XidLogEvent event) { TransactionEnd transactionEnd = createTransactionEnd(event.getXid()); Header header = createHeader(binlogFileName, event.getHeader(), "", "", null); return createEntry(header, EntryType.TRANSACTIONEND, transactionEnd.toByteString()); }
Example #4
Source File: LogEventConvert.java From DBus with Apache License 2.0 | 4 votes |
public static TransactionEnd createTransactionEnd(long transactionId) { TransactionEnd.Builder endBuilder = TransactionEnd.newBuilder(); endBuilder.setTransactionId(String.valueOf(transactionId)); return endBuilder.build(); }
Example #5
Source File: LogEventConvert_old.java From DBus with Apache License 2.0 | 4 votes |
private Entry parseXidEvent(XidLogEvent event) { TransactionEnd transactionEnd = createTransactionEnd(event.getXid()); Header header = createHeader(binlogFileName, event.getHeader(), "", "", null); return createEntry(header, EntryType.TRANSACTIONEND, transactionEnd.toByteString()); }
Example #6
Source File: LogEventConvert_old.java From DBus with Apache License 2.0 | 4 votes |
public static TransactionEnd createTransactionEnd(long transactionId) { TransactionEnd.Builder endBuilder = TransactionEnd.newBuilder(); endBuilder.setTransactionId(String.valueOf(transactionId)); return endBuilder.build(); }
Example #7
Source File: LogEventConvert.java From DBus with Apache License 2.0 | 4 votes |
private Entry parseXidEvent(XidLogEvent event) { TransactionEnd transactionEnd = createTransactionEnd(event.getXid()); Header header = createHeader(binlogFileName, event.getHeader(), "", "", null); return createEntry(header, EntryType.TRANSACTIONEND, transactionEnd.toByteString()); }
Example #8
Source File: LogEventConvert.java From DBus with Apache License 2.0 | 4 votes |
public static TransactionEnd createTransactionEnd(long transactionId) { TransactionEnd.Builder endBuilder = TransactionEnd.newBuilder(); endBuilder.setTransactionId(String.valueOf(transactionId)); return endBuilder.build(); }
Example #9
Source File: LogEventConvert.java From canal with Apache License 2.0 | 4 votes |
private Entry parseXidEvent(XidLogEvent event) { TransactionEnd transactionEnd = createTransactionEnd(event.getXid()); Header header = createHeader(event.getHeader(), "", "", null); return createEntry(header, EntryType.TRANSACTIONEND, transactionEnd.toByteString()); }
Example #10
Source File: LogEventConvert.java From canal with Apache License 2.0 | 4 votes |
public static TransactionEnd createTransactionEnd(long transactionId) { TransactionEnd.Builder endBuilder = TransactionEnd.newBuilder(); endBuilder.setTransactionId(String.valueOf(transactionId)); return endBuilder.build(); }