public class DataMessage extends Message
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DataMessage.Record
Record contains data of one record.
|
attributes, id, SOURCEIPANDPORT, type| 构造器和说明 |
|---|
DataMessage()
Constructor of DataMessage, the type is 100 by default.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addRecord(DataMessage.Record r) |
void |
clear() |
int |
getRecordCount()
Get the number of all records in the message.
|
List<DataMessage.Record> |
getRecordList()
Get the list of records.
|
void |
mergeFrom(DataInputStream reader,
String regionId)
Construct the message from DataInputStream.
|
static DbTypeEnum |
parseDBTypeCode(int dbTypeCode) |
static DbTypeEnum |
parseDbTypeStr(String dbTypeInStr) |
String |
toString() |
addAttribute, addAttributes, getAttribute, getMid, getStoreIpAndPort, getType, setId, setTypepublic int getRecordCount()
public List<DataMessage.Record> getRecordList()
public void mergeFrom(DataInputStream reader, String regionId) throws IOException
reader - is the DataInputStream.regionId - is the region id.IOException - if an IOException occurs.public void addRecord(DataMessage.Record r)
public static DbTypeEnum parseDbTypeStr(String dbTypeInStr)
public static DbTypeEnum parseDBTypeCode(int dbTypeCode)
Copyright © 2024. All rights reserved.