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 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()
String
getGtid()
com.github.shyiko.mysql.binlog.GtidSet
getGtidSet()
String
getGtidSetStr()
long
getOffset()
int
hashCode()
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()
-
getGtidSet
public com.github.shyiko.mysql.binlog.GtidSet getGtidSet()
-
fullPosition
public String fullPosition()
-
newerThan
public boolean newerThan(BinlogPosition other)
-
-