@Test public void testConstructor() throws Exception { assertEquals( BinlogFilePos.fromString("mysql-bin-changelog.000218:14:6"), new BinlogFilePos("mysql-bin-changelog.000218", 14, 6)); assertEquals(new BinlogFilePos(80887L), new BinlogFilePos("mysql-bin-changelog.080887")); assertEquals(new BinlogFilePos(1080887L), new BinlogFilePos("mysql-bin-changelog.1080887")); }
public static BinlogFilePos fromString(@NonNull final String position) { Iterator<String> parts = SPLITTER.split(position).iterator(); String fileName = parts.next(); String pos = parts.next(); String nextPos = parts.next(); if (NULL_VALUE.equals(fileName)) { fileName = null; } return new BinlogFilePos(fileName, Long.parseLong(pos), Long.parseLong(nextPos)); }
BinlogFilePos implements Comparable<BinlogFilePos>, Serializable { public static BinlogFilePos fromString(@NonNull final String position) { Iterator<String> parts = SPLITTER.split(position).iterator(); String fileName = parts.next(); String pos = parts.next(); String nextPos = parts.next(); if (NULL_VALUE.equals(fileName)) { fileName = null; } return new BinlogFilePos(fileName, Long.parseLong(pos), Long.parseLong(nextPos)); } }
BinlogFilePos implements Comparable<BinlogFilePos>, Serializable { public static BinlogFilePos fromString(@NonNull final String position) { Iterator<String> parts = SPLITTER.split(position).iterator(); String fileName = parts.next(); String pos = parts.next(); String nextPos = parts.next(); if (NULL_VALUE.equals(fileName)) { fileName = null; } return new BinlogFilePos(fileName, Long.parseLong(pos), Long.parseLong(nextPos)); } BinlogFilePos(long fileNumber);  BinlogFilePos(String fileName);  BinlogFilePos(long fileNumber, long position, long nextPosition);  BinlogFilePos(
      String fileName, long position, long nextPosition, String gtidSet, String serverUUID);  BinlogFilePos(String fileName, long position, long nextPosition); }
BinlogFilePos implements Comparable<BinlogFilePos>, Serializable { public static BinlogFilePos fromString(@NonNull final String position) { Iterator<String> parts = SPLITTER.split(position).iterator(); String fileName = parts.next(); String pos = parts.next(); String nextPos = parts.next(); if (NULL_VALUE.equals(fileName)) { fileName = null; } return new BinlogFilePos(fileName, Long.parseLong(pos), Long.parseLong(nextPos)); } BinlogFilePos(long fileNumber);  BinlogFilePos(String fileName);  BinlogFilePos(long fileNumber, long position, long nextPosition);  BinlogFilePos(
      String fileName, long position, long nextPosition, String gtidSet, String serverUUID);  BinlogFilePos(String fileName, long position, long nextPosition); static BinlogFilePos fromString(@NonNull final String position); @JsonIgnore long getFileNumber(); @Override String toString(); @Override int compareTo(@NonNull final BinlogFilePos other); static boolean shouldCompareUsingFilePosition(BinlogFilePos pos1, BinlogFilePos pos2); static Builder builder(); }
BinlogFilePos implements Comparable<BinlogFilePos>, Serializable { public static BinlogFilePos fromString(@NonNull final String position) { Iterator<String> parts = SPLITTER.split(position).iterator(); String fileName = parts.next(); String pos = parts.next(); String nextPos = parts.next(); if (NULL_VALUE.equals(fileName)) { fileName = null; } return new BinlogFilePos(fileName, Long.parseLong(pos), Long.parseLong(nextPos)); } BinlogFilePos(long fileNumber);  BinlogFilePos(String fileName);  BinlogFilePos(long fileNumber, long position, long nextPosition);  BinlogFilePos(
      String fileName, long position, long nextPosition, String gtidSet, String serverUUID);  BinlogFilePos(String fileName, long position, long nextPosition); static BinlogFilePos fromString(@NonNull final String position); @JsonIgnore long getFileNumber(); @Override String toString(); @Override int compareTo(@NonNull final BinlogFilePos other); static boolean shouldCompareUsingFilePosition(BinlogFilePos pos1, BinlogFilePos pos2); static Builder builder(); static final String DEFAULT_BINLOG_FILE_NAME; }