public static class DataMessage.Record.Field extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DataMessage.Record.Field.Type |
| 限定符和类型 | 字段和说明 |
|---|---|
boolean |
changeValue |
String |
encoding |
int |
flag |
long |
length |
static DataMessage.Record.Field.Type[] |
MYSQL_TYPES |
String |
name |
boolean |
notNull |
boolean |
prev |
boolean |
primaryKey |
int |
type |
ByteString |
value |
| 构造器和说明 |
|---|
Field() |
Field(String name,
int type,
String encoding,
ByteString value,
boolean pk) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
Clear the field.
|
String |
getEncoding()
Get the encoding of the field.
|
String |
getFieldname()
Get the name of the field.
|
boolean |
getNotNull() |
int |
getRawType() |
DataMessage.Record.Field.Type |
getType()
Get the enumerated type of the field.
|
ByteString |
getValue()
Get the value of the field.
|
boolean |
isChangeValue() |
boolean |
isGenerated() |
boolean |
isOracleLobType()
oracle logminer won't output lob type value
|
boolean |
isPrev() |
boolean |
isPrimary() |
void |
mergeFrom(DataInputStream reader,
String recordEncoding)
Abstract needed data for a field from the input stream.
|
void |
setFlag(int flag) |
void |
setNotNull(boolean notNull) |
void |
setPrev(boolean prev) |
void |
setPrimary(boolean primary) |
void |
setValue(ByteString v) |
String |
toString() |
public long length
public boolean primaryKey
public String name
public int type
public int flag
public String encoding
public ByteString value
public boolean changeValue
public boolean prev
public boolean notNull
public static DataMessage.Record.Field.Type[] MYSQL_TYPES
public Field()
public Field(String name, int type, String encoding, ByteString value, boolean pk)
public final boolean isGenerated()
public void setFlag(int flag)
public void setNotNull(boolean notNull)
public final boolean isPrimary()
public final int getRawType()
public void setPrimary(boolean primary)
public final String getFieldname()
public final String getEncoding()
public final boolean getNotNull()
public boolean isOracleLobType()
public final DataMessage.Record.Field.Type getType()
public boolean isChangeValue()
public boolean isPrev()
public void setPrev(boolean prev)
public final ByteString getValue()
ByteStringpublic void setValue(ByteString v)
public void mergeFrom(DataInputStream reader, String recordEncoding) throws IOException
reader - the DataInputStream.recordEncoding - is the encoding of the field value.IOException - if an I/O error occurspublic void clear()
Copyright © 2024. All rights reserved.