net.neoremind.fountain.rowbaselog.event
类 TableMapEvent

java.lang.Object
  继承者 net.neoremind.fountain.event.BaseLogEvent
      继承者 net.neoremind.fountain.rowbaselog.event.TableMapEvent
所有已实现的接口:
Serializable

public class TableMapEvent
extends BaseLogEvent

作者:
hanxu03
另请参见:
序列化表格

嵌套类摘要
static class TableMapEvent.ColumnInfo
          描述列信息
 
字段摘要
 TableMapEvent.ColumnInfo[] columnInfoArray
           
 BitSet columnNullMap
           
 int columnsLength
           
 String dbName
           
 byte dbNameLength
           
 byte[] reserved
           
 long tableId
          Fixed data part:

6 bytes.

 String tableName
           
 byte tableNameLength
           
 
构造方法摘要
TableMapEvent(BinlogEventHeader eventHeader, TableEventCallback callback)
          构造方法
 
方法摘要
 String getFullTableName()
           
 BaseLogEvent parseData(ByteBuffer buf)
          解析二进制数据填充event属性数据
 
从类 net.neoremind.fountain.event.BaseLogEvent 继承的方法
getEventHeader
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

tableId

public long tableId
Fixed data part:

6 bytes. The table ID.

2 bytes. Reserved for future use.

Variable data part:

1 byte. The length of the database name.

Variable-sized. The database name (null-terminated).

1 byte. The length of the table name.

Variable-sized. The table name (null-terminated).

Packed integer. The number of columns in the table.

Variable-sized. An array of column types, one byte per column.

Packed integer. The length of the metadata block.

Variable-sized. The metadata block; see log_event.h for contents and format.

Variable-sized. Bit-field indicating whether each column can be NULL, one bit per column. For this field, the amount of storage required for N columns is INT((N+7)/8) bytes.


reserved

public byte[] reserved

dbNameLength

public byte dbNameLength

dbName

public String dbName

tableNameLength

public byte tableNameLength

tableName

public String tableName

columnsLength

public int columnsLength

columnInfoArray

public TableMapEvent.ColumnInfo[] columnInfoArray

columnNullMap

public BitSet columnNullMap
构造方法详细信息

TableMapEvent

public TableMapEvent(BinlogEventHeader eventHeader,
                     TableEventCallback callback)
构造方法

参数:
eventHeader - 事件头
callback - 回调
方法详细信息

getFullTableName

public String getFullTableName()

parseData

public BaseLogEvent parseData(ByteBuffer buf)
从类 BaseLogEvent 复制的描述
解析二进制数据填充event属性数据

指定者:
类 BaseLogEvent 中的 parseData


Copyright © 2016 neoremind. All rights reserved.