Class HistoryRecordComparator

java.lang.Object
io.debezium.relational.history.HistoryRecordComparator

public class HistoryRecordComparator extends Object
Compares HistoryRecord instances to determine which came first.
Since:
0.2
Author:
Randall Hauch
  • Field Details

  • Constructor Details

    • HistoryRecordComparator

      public HistoryRecordComparator()
  • Method Details

    • isAtOrBefore

      public boolean isAtOrBefore(HistoryRecord record1, HistoryRecord record2)
      Determine if the first HistoryRecord is at the same or earlier point in time than the second HistoryRecord.
      Parameters:
      record1 - the first record; never null
      record2 - the second record; never null
      Returns:
      true if the first record is at the same or earlier point in time than the second record, or false otherwise
    • isPositionAtOrBefore

      protected boolean isPositionAtOrBefore(Document position1, Document position2)
    • isSameSource

      protected boolean isSameSource(Document source1, Document source2)