Java Code Examples for com.alibaba.otter.canal.protocol.CanalEntry.RowChange#Builder
The following examples show how to use
com.alibaba.otter.canal.protocol.CanalEntry.RowChange#Builder .
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 | 5 votes |
private Entry buildQueryEntry(String queryString, LogHeader logHeader, String tableName) { Header header = createHeader(logHeader, "", tableName, EventType.QUERY); RowChange.Builder rowChangeBuider = RowChange.newBuilder(); rowChangeBuider.setSql(queryString); rowChangeBuider.setEventType(EventType.QUERY); return createEntry(header, EntryType.ROWDATA, rowChangeBuider.build().toByteString()); }
Example 2
Source File: LogEventConvert.java From canal-1.1.3 with Apache License 2.0 | 5 votes |
private Entry buildQueryEntry(String queryString, LogHeader logHeader) { Header header = createHeader(logHeader, "", "", EventType.QUERY); RowChange.Builder rowChangeBuider = RowChange.newBuilder(); rowChangeBuider.setSql(queryString); rowChangeBuider.setEventType(EventType.QUERY); return createEntry(header, EntryType.ROWDATA, rowChangeBuider.build().toByteString()); }
Example 3
Source File: LogEventConvert.java From DBus with Apache License 2.0 | 5 votes |
private Entry buildQueryEntry(String queryString, LogHeader logHeader) { Header header = createHeader(binlogFileName, logHeader, "", "", EventType.QUERY); RowChange.Builder rowChangeBuider = RowChange.newBuilder(); rowChangeBuider.setSql(queryString); rowChangeBuider.setEventType(EventType.QUERY); return createEntry(header, EntryType.ROWDATA, rowChangeBuider.build().toByteString()); }
Example 4
Source File: LogEventConvert_old.java From DBus with Apache License 2.0 | 5 votes |
private Entry buildQueryEntry(String queryString, LogHeader logHeader) { Header header = createHeader(binlogFileName, logHeader, "", "", EventType.QUERY); RowChange.Builder rowChangeBuider = RowChange.newBuilder(); rowChangeBuider.setSql(queryString); rowChangeBuider.setEventType(EventType.QUERY); return createEntry(header, EntryType.ROWDATA, rowChangeBuider.build().toByteString()); }
Example 5
Source File: LogEventConvert.java From DBus with Apache License 2.0 | 5 votes |
private Entry buildQueryEntry(String queryString, LogHeader logHeader) { Header header = createHeader(binlogFileName, logHeader, "", "", EventType.QUERY); RowChange.Builder rowChangeBuider = RowChange.newBuilder(); rowChangeBuider.setSql(queryString); rowChangeBuider.setEventType(EventType.QUERY); return createEntry(header, EntryType.ROWDATA, rowChangeBuider.build().toByteString()); }
Example 6
Source File: LogEventConvert.java From canal with Apache License 2.0 | 5 votes |
private Entry buildQueryEntry(String queryString, LogHeader logHeader, String tableName) { Header header = createHeader(logHeader, "", tableName, EventType.QUERY); RowChange.Builder rowChangeBuider = RowChange.newBuilder(); rowChangeBuider.setSql(queryString); rowChangeBuider.setEventType(EventType.QUERY); return createEntry(header, EntryType.ROWDATA, rowChangeBuider.build().toByteString()); }
Example 7
Source File: LogEventConvert.java From canal with Apache License 2.0 | 5 votes |
private Entry buildQueryEntry(String queryString, LogHeader logHeader) { Header header = createHeader(logHeader, "", "", EventType.QUERY); RowChange.Builder rowChangeBuider = RowChange.newBuilder(); rowChangeBuider.setSql(queryString); rowChangeBuider.setEventType(EventType.QUERY); return createEntry(header, EntryType.ROWDATA, rowChangeBuider.build().toByteString()); }