net.neoremind.fountain.rowbaselog.event
类 RotateEvent
java.lang.Object
net.neoremind.fountain.event.BaseLogEvent
net.neoremind.fountain.rowbaselog.event.RotateEvent
- 所有已实现的接口:
- Serializable
public class RotateEvent
- extends BaseLogEvent
binlog文件的结尾,通常(只要master不当机)就是ROTATE_EVENT或者STOP_EVENT
- 从以下版本开始:
- 2013-7-15
- 作者:
- hanxu03, zhangxu
- 另请参见:
- rotate-event,
序列化表格
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nextLogEventPos
public long nextLogEventPos
- 下一个binlog事件的position
nextLogFileName
public String nextLogFileName
- 下一个binglog文件名
RotateEvent
public RotateEvent(BinlogEventHeader eventHeader)
- Fixed data part:
8 bytes. The position of the first event in the next log file.
Always contains the number 4 (meaning the next event starts at position 4 in the next binary log).
This field is not present in v1; presumably the value is assumed to be 4.
Variable data part:
The name of the next binary log. The filename is not null-terminated. Its length is the event size minus the
size of the fixed parts.
parseData
public BaseLogEvent parseData(ByteBuffer buf)
- 从类
BaseLogEvent 复制的描述
- 解析二进制数据填充event属性数据
- 指定者:
- 类
BaseLogEvent 中的 parseData
Copyright © 2016 neoremind. All rights reserved.