public class BinlogOffset extends Offset
This structure can also be used to deal the binlog event in transaction, a transaction may
contains multiple change events, and each change event may contain multiple rows. When restart
from a specific BinlogOffset, we need to skip the processed change events and the
processed rows.
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
BINLOG_FILENAME_OFFSET_KEY |
static String |
BINLOG_POSITION_OFFSET_KEY |
static String |
EVENTS_TO_SKIP_OFFSET_KEY |
static String |
GTID_SET_KEY |
static BinlogOffset |
INITIAL_OFFSET |
static BinlogOffset |
NO_STOPPING_OFFSET |
static String |
ROWS_TO_SKIP_OFFSET_KEY |
static String |
SERVER_ID_KEY |
static String |
TIMESTAMP_KEY |
| 构造器和说明 |
|---|
BinlogOffset(Map<String,String> offset) |
BinlogOffset(String filename,
long position) |
BinlogOffset(String filename,
long position,
long restartSkipEvents,
long restartSkipRows,
long binlogEpochSecs,
String restartGtidSet,
Integer serverId) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(Offset offset)
This method is inspired by
HistoryRecordComparator. |
boolean |
equals(Object o) |
String |
getFilename() |
String |
getGtidSet() |
long |
getPosition() |
long |
getRestartSkipEvents() |
long |
getRestartSkipRows() |
Long |
getServerId() |
long |
getTimestamp() |
getOffset, hashCode, isAfter, isAtOrAfter, isAtOrBefore, isBefore, longOffsetValue, toStringpublic static final BinlogOffset INITIAL_OFFSET
public static final BinlogOffset NO_STOPPING_OFFSET
public BinlogOffset(String filename, long position)
public String getFilename()
public long getPosition()
public long getRestartSkipEvents()
public long getRestartSkipRows()
public String getGtidSet()
public long getTimestamp()
public Long getServerId()
public int compareTo(Offset offset)
HistoryRecordComparator.Copyright © 2023 The Apache Software Foundation. All rights reserved.