public static class DataMessage.Record extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DataMessage.Record.Field
Field contains data of one field
|
static class |
DataMessage.Record.Type |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<String,String> |
attributes |
protected List<DataMessage.Record.Field> |
fields |
protected static ThreadLocal<String> |
globalSafeTimestamp |
protected String |
safeTimestamp |
protected String |
timestamp |
static String |
TRACEID_STRING |
protected static ThreadLocal<Boolean> |
txEnd |
protected DataMessage.Record.Type |
type |
static String |
UTF8MB4_ENCODING |
| 构造器和说明 |
|---|
Record() |
protected DataMessage.Record.Type type
protected List<DataMessage.Record.Field> fields
protected String timestamp
protected String safeTimestamp
protected static ThreadLocal<String> globalSafeTimestamp
protected static ThreadLocal<Boolean> txEnd
public String getRegionId()
public void setRegionId(String regionId)
public List<ByteString> getFirstPKValue()
public void setIsConnectionFirstRecord(boolean value)
public boolean getIsConnectionFirstRecord()
public Long getLogSeqNum()
public void mergeFrom(DataInputStream reader) throws IOException
reader - is the input stream.IOException - if an I/O error occurspublic DataMessage.Record.Type getOpt()
public String getId()
public String getDbName()
public String getTableName()
public String getCheckpoint()
@Deprecated public String getMetadataVersion()
public String getTimestamp()
public String getTimestampUsec() throws IOException
IOExceptionpublic String getSafeTimestamp()
public String getServerId()
public String getPrevId()
public String getServerSeq()
public String getPrevServerSeq()
public List<int[]> getPrimaryAndUniqueConstraintColumnIndexTuples()
public String getPrimaryKeys()
public boolean isKeyChange()
public String getTraceInfo()
public String getUniqueColNames()
public DbTypeEnum getDbType()
public boolean isQueryBack()
public boolean isFirstInLogEvent()
public int getFieldCount()
public List<DataMessage.Record.Field> getFieldList()
public void fieldListParse(FieldParseListener fieldParseListener) throws Exception
fieldParseListener - fieldParseListenerException - if an exception occurspublic void setType(DataMessage.Record.Type type)
type - one in insert, delete, update and heartbeat.public void addAttribute(String key, String value)
key - the name of the attribute.value - the value of the attribute.public byte[] getRawData()
Copyright © 2024. All rights reserved.