com.alibaba.otter.canal.parse.inbound.BinlogParser Java Examples
The following examples show how to use
com.alibaba.otter.canal.parse.inbound.BinlogParser.
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: AbstractMysqlEventParser.java From canal-1.1.3 with Apache License 2.0 | 6 votes |
protected BinlogParser buildParser() { LogEventConvert convert = new LogEventConvert(); if (eventFilter != null && eventFilter instanceof AviaterRegexFilter) { convert.setNameFilter((AviaterRegexFilter) eventFilter); } if (eventBlackFilter != null && eventBlackFilter instanceof AviaterRegexFilter) { convert.setNameBlackFilter((AviaterRegexFilter) eventBlackFilter); } convert.setCharset(connectionCharset); convert.setFilterQueryDcl(filterQueryDcl); convert.setFilterQueryDml(filterQueryDml); convert.setFilterQueryDdl(filterQueryDdl); convert.setFilterRows(filterRows); convert.setFilterTableError(filterTableError); convert.setUseDruidDdlFilter(useDruidDdlFilter); return convert; }
Example #2
Source File: AbstractMysqlEventParser.java From canal with Apache License 2.0 | 6 votes |
protected BinlogParser buildParser() { LogEventConvert convert = new LogEventConvert(); if (eventFilter != null && eventFilter instanceof AviaterRegexFilter) { convert.setNameFilter((AviaterRegexFilter) eventFilter); } if (eventBlackFilter != null && eventBlackFilter instanceof AviaterRegexFilter) { convert.setNameBlackFilter((AviaterRegexFilter) eventBlackFilter); } convert.setFieldFilterMap(getFieldFilterMap()); convert.setFieldBlackFilterMap(getFieldBlackFilterMap()); convert.setCharset(connectionCharset); convert.setFilterQueryDcl(filterQueryDcl); convert.setFilterQueryDml(filterQueryDml); convert.setFilterQueryDdl(filterQueryDdl); convert.setFilterRows(filterRows); convert.setFilterTableError(filterTableError); convert.setUseDruidDdlFilter(useDruidDdlFilter); return convert; }
Example #3
Source File: GroupEventPaserTest.java From canal-1.1.3 with Apache License 2.0 | 5 votes |
private BinlogParser buildParser(AuthenticationInfo info) { return new AbstractBinlogParser<LogEvent>() { @Override public Entry parse(LogEvent event, boolean isSeek) throws CanalParseException { return null; } }; }
Example #4
Source File: GroupEventPaserTest.java From canal with Apache License 2.0 | 5 votes |
private BinlogParser buildParser(AuthenticationInfo info) { return new AbstractBinlogParser<LogEvent>() { @Override public Entry parse(LogEvent event, boolean isSeek) throws CanalParseException { return null; } }; }