com.alibaba.otter.canal.filter.CanalEventFilter Java Examples

The following examples show how to use com.alibaba.otter.canal.filter.CanalEventFilter. 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 with Apache License 2.0 5 votes vote down vote up
public void setEventBlackFilter(CanalEventFilter eventBlackFilter) {
    super.setEventBlackFilter(eventBlackFilter);

    // 触发一下filter变更
    if (eventBlackFilter != null && eventBlackFilter instanceof AviaterRegexFilter) {
        if (binlogParser instanceof LogEventConvert) {
            ((LogEventConvert) binlogParser).setNameBlackFilter((AviaterRegexFilter) eventBlackFilter);
        }

        if (tableMetaTSDB != null && tableMetaTSDB instanceof DatabaseTableMeta) {
            ((DatabaseTableMeta) tableMetaTSDB).setBlackFilter(eventBlackFilter);
        }
    }
}
 
Example #2
Source File: AbstractMysqlEventParser.java    From canal-1.1.3 with Apache License 2.0 5 votes vote down vote up
public void setEventFilter(CanalEventFilter eventFilter) {
    super.setEventFilter(eventFilter);

    // 触发一下filter变更
    if (eventFilter != null && eventFilter instanceof AviaterRegexFilter) {
        if (binlogParser instanceof LogEventConvert) {
            ((LogEventConvert) binlogParser).setNameFilter((AviaterRegexFilter) eventFilter);
        }

        if (tableMetaTSDB != null && tableMetaTSDB instanceof DatabaseTableMeta) {
            ((DatabaseTableMeta) tableMetaTSDB).setFilter(eventFilter);
        }
    }
}
 
Example #3
Source File: AbstractMysqlEventParser.java    From canal-1.1.3 with Apache License 2.0 5 votes vote down vote up
public void setEventBlackFilter(CanalEventFilter eventBlackFilter) {
    super.setEventBlackFilter(eventBlackFilter);

    // 触发一下filter变更
    if (eventBlackFilter != null && eventBlackFilter instanceof AviaterRegexFilter) {
        if (binlogParser instanceof LogEventConvert) {
            ((LogEventConvert) binlogParser).setNameBlackFilter((AviaterRegexFilter) eventBlackFilter);
        }

        if (tableMetaTSDB != null && tableMetaTSDB instanceof DatabaseTableMeta) {
            ((DatabaseTableMeta) tableMetaTSDB).setBlackFilter(eventBlackFilter);
        }
    }
}
 
Example #4
Source File: AbstractMysqlEventParser.java    From canal with Apache License 2.0 5 votes vote down vote up
public void setEventFilter(CanalEventFilter eventFilter) {
    super.setEventFilter(eventFilter);

    // 触发一下filter变更
    if (eventFilter != null && eventFilter instanceof AviaterRegexFilter) {
        if (binlogParser instanceof LogEventConvert) {
            ((LogEventConvert) binlogParser).setNameFilter((AviaterRegexFilter) eventFilter);
        }

        if (tableMetaTSDB != null && tableMetaTSDB instanceof DatabaseTableMeta) {
            ((DatabaseTableMeta) tableMetaTSDB).setFilter(eventFilter);
        }
    }
}
 
Example #5
Source File: AbstractEventParser.java    From DBus with Apache License 2.0 4 votes vote down vote up
public void setEventBlackFilter(CanalEventFilter eventBlackFilter) {
    this.eventBlackFilter = eventBlackFilter;
}
 
Example #6
Source File: AbstractEventParser.java    From canal with Apache License 2.0 4 votes vote down vote up
public void setEventBlackFilter(CanalEventFilter eventBlackFilter) {
    this.eventBlackFilter = eventBlackFilter;
}
 
Example #7
Source File: AbstractEventParser.java    From canal with Apache License 2.0 4 votes vote down vote up
public void setEventFilter(CanalEventFilter eventFilter) {
    this.eventFilter = eventFilter;
}
 
Example #8
Source File: DatabaseTableMeta.java    From canal with Apache License 2.0 4 votes vote down vote up
public void setBlackFilter(CanalEventFilter blackFilter) {
    this.blackFilter = blackFilter;
}
 
Example #9
Source File: DatabaseTableMeta.java    From canal with Apache License 2.0 4 votes vote down vote up
public void setFilter(CanalEventFilter filter) {
    this.filter = filter;
}
 
Example #10
Source File: AbstractCanalEventSink.java    From canal with Apache License 2.0 4 votes vote down vote up
public CanalEventFilter getFilter() {
    return filter;
}
 
Example #11
Source File: AbstractCanalEventSink.java    From canal with Apache License 2.0 4 votes vote down vote up
public void setFilter(CanalEventFilter filter) {
    this.filter = filter;
}
 
Example #12
Source File: AbstractCanalEventSink.java    From canal-1.1.3 with Apache License 2.0 4 votes vote down vote up
public void setFilter(CanalEventFilter filter) {
    this.filter = filter;
}
 
Example #13
Source File: AbstractEventParser.java    From DBus with Apache License 2.0 4 votes vote down vote up
public void setEventFilter(CanalEventFilter eventFilter) {
    this.eventFilter = eventFilter;
}
 
Example #14
Source File: AbstractEventParser.java    From canal-1.1.3 with Apache License 2.0 4 votes vote down vote up
public void setEventBlackFilter(CanalEventFilter eventBlackFilter) {
    this.eventBlackFilter = eventBlackFilter;
}
 
Example #15
Source File: AbstractEventParser.java    From canal-1.1.3 with Apache License 2.0 4 votes vote down vote up
public void setEventFilter(CanalEventFilter eventFilter) {
    this.eventFilter = eventFilter;
}
 
Example #16
Source File: DatabaseTableMeta.java    From canal-1.1.3 with Apache License 2.0 4 votes vote down vote up
public void setBlackFilter(CanalEventFilter blackFilter) {
    this.blackFilter = blackFilter;
}
 
Example #17
Source File: DatabaseTableMeta.java    From canal-1.1.3 with Apache License 2.0 4 votes vote down vote up
public void setFilter(CanalEventFilter filter) {
    this.filter = filter;
}
 
Example #18
Source File: AbstractCanalEventSink.java    From canal-1.1.3 with Apache License 2.0 4 votes vote down vote up
public CanalEventFilter getFilter() {
    return filter;
}