public boolean newerThan(BinlogPosition other) { if ( other == null ) return true; if (gtidSetStr != null) { return !getGtidSet().isContainedWithin(other.getGtidSet()); } int cmp = this.file.compareTo(other.file); if ( cmp > 0 ) { return true; } else if ( cmp == 0 ) { return this.offset > other.offset; } else { return false; } }
if (gtid != null) { GtidSet gtidSet = new GtidSet(gtid); if (gtidSet.isContainedWithin(targetBinlogPosition.getGtidSet())) { LOGGER.debug("Found contained schema: " + id); return id;