Package com.zendesk.maxwell.replication
Class BinlogPosition
- java.lang.Object
-
- com.zendesk.maxwell.replication.BinlogPosition
-
- All Implemented Interfaces:
Serializable
public class BinlogPosition extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BinlogPosition(long l, String file)
BinlogPosition(String gtidSetStr, String gtid, long l, String file)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BinlogPosition
addGtid(String gtid, long offset, String file)
static BinlogPosition
at(long offset, String file)
static BinlogPosition
at(BinlogPosition position)
static BinlogPosition
at(String gtidSetStr, long offset, String file)
static BinlogPosition
capture(Connection c, boolean gtidMode)
boolean
equals(Object other)
String
fullPosition()
String
getFile()
Long
getFileNumber()
String
getGtid()
com.github.shyiko.mysql.binlog.GtidSet
getGtidSet()
String
getGtidSetStr()
long
getOffset()
int
hashCode()
void
mergeGtids(com.github.shyiko.mysql.binlog.GtidSet seenSet)
boolean
newerThan(BinlogPosition other)
String
toString()
-
-
-
Method Detail
-
capture
public static BinlogPosition capture(Connection c, boolean gtidMode) throws SQLException
- Throws:
SQLException
-
at
public static BinlogPosition at(BinlogPosition position)
-
at
public static BinlogPosition at(String gtidSetStr, long offset, String file)
-
at
public static BinlogPosition at(long offset, String file)
-
getOffset
public long getOffset()
-
getFile
public String getFile()
-
getGtid
public String getGtid()
-
getGtidSetStr
public String getGtidSetStr()
-
addGtid
public BinlogPosition addGtid(String gtid, long offset, String file)
-
mergeGtids
public void mergeGtids(com.github.shyiko.mysql.binlog.GtidSet seenSet)
-
getGtidSet
public com.github.shyiko.mysql.binlog.GtidSet getGtidSet()
-
fullPosition
public String fullPosition()
-
getFileNumber
public Long getFileNumber()
-
newerThan
public boolean newerThan(BinlogPosition other)
-
-