Class ReconcilingBinlogReader.OffsetLimitPredicate
- java.lang.Object
-
- io.debezium.connector.mysql.legacy.ReconcilingBinlogReader.OffsetLimitPredicate
-
- All Implemented Interfaces:
HaltingPredicate
- Enclosing class:
- ReconcilingBinlogReader
static class ReconcilingBinlogReader.OffsetLimitPredicate extends Object implements HaltingPredicate
A Predicate that returns false for any record beyond a given offset.
-
-
Field Summary
Fields Modifier and Type Field Description private Predicate<String>
gtidFilter
private Document
leadingReaderFinalOffsetDocument
-
Constructor Summary
Constructors Constructor Description OffsetLimitPredicate(Map<String,?> leadingReaderFinalOffset, Predicate<String> gtidFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(org.apache.kafka.connect.source.SourceRecord sourceRecord)
Whether this record should be processed by the calling reader or not.
-
-
-
Method Detail
-
accepts
public boolean accepts(org.apache.kafka.connect.source.SourceRecord sourceRecord)
Description copied from interface:HaltingPredicate
Whether this record should be processed by the calling reader or not.- Specified by:
accepts
in interfaceHaltingPredicate
-
-