public static final class BinlogOuterClass.Binlog extends com.google.protobuf.GeneratedMessageV3 implements BinlogOuterClass.BinlogOrBuilder
Binlog contains all the changes in a transaction, which can be used to reconstruct SQL statement, then export to other systems.Protobuf type
binlog.Binlog| Modifier and Type | Class and Description |
|---|---|
static class |
BinlogOuterClass.Binlog.Builder
Binlog contains all the changes in a transaction, which can be used to reconstruct SQL statement, then export to
other systems.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COMMIT_TS_FIELD_NUMBER |
static int |
DDL_JOB_ID_FIELD_NUMBER |
static int |
DDL_QUERY_FIELD_NUMBER |
static int |
DDL_SCHEMA_STATE_FIELD_NUMBER |
static com.google.protobuf.Parser<BinlogOuterClass.Binlog> |
PARSER
Deprecated.
|
static int |
PREWRITE_KEY_FIELD_NUMBER |
static int |
PREWRITE_VALUE_FIELD_NUMBER |
static int |
START_TS_FIELD_NUMBER |
static int |
TP_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getCommitTs()
commit_ts is used only in binlog type Commit.
|
long |
getDdlJobId()
ddl_job_id is used for DDL Binlog.
|
com.google.protobuf.ByteString |
getDdlQuery()
ddl_query is the original DDL statement query.
|
int |
getDdlSchemaState()
ddl_schema_state is used for DDL Binlog.
|
static BinlogOuterClass.Binlog |
getDefaultInstance() |
BinlogOuterClass.Binlog |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<BinlogOuterClass.Binlog> |
getParserForType() |
com.google.protobuf.ByteString |
getPrewriteKey()
prewrite key is used only in Prewrite binlog type.
|
com.google.protobuf.ByteString |
getPrewriteValue()
prewrite_data is marshalled from PrewriteData type,
we do not need to unmarshal prewrite data before the binlog have been successfully paired.
|
int |
getSerializedSize() |
long |
getStartTs()
start_ts is used in Prewrite, Commit and Rollback binlog Type.
|
BinlogOuterClass.BinlogType |
getTp()
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false]; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCommitTs()
commit_ts is used only in binlog type Commit.
|
boolean |
hasDdlJobId()
ddl_job_id is used for DDL Binlog.
|
boolean |
hasDdlQuery()
ddl_query is the original DDL statement query.
|
boolean |
hasDdlSchemaState()
ddl_schema_state is used for DDL Binlog.
|
int |
hashCode() |
boolean |
hasPrewriteKey()
prewrite key is used only in Prewrite binlog type.
|
boolean |
hasPrewriteValue()
prewrite_data is marshalled from PrewriteData type,
we do not need to unmarshal prewrite data before the binlog have been successfully paired.
|
boolean |
hasStartTs()
start_ts is used in Prewrite, Commit and Rollback binlog Type.
|
boolean |
hasTp()
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false]; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static BinlogOuterClass.Binlog.Builder |
newBuilder() |
static BinlogOuterClass.Binlog.Builder |
newBuilder(BinlogOuterClass.Binlog prototype) |
BinlogOuterClass.Binlog.Builder |
newBuilderForType() |
protected BinlogOuterClass.Binlog.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static BinlogOuterClass.Binlog |
parseDelimitedFrom(InputStream input) |
static BinlogOuterClass.Binlog |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BinlogOuterClass.Binlog |
parseFrom(byte[] data) |
static BinlogOuterClass.Binlog |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BinlogOuterClass.Binlog |
parseFrom(ByteBuffer data) |
static BinlogOuterClass.Binlog |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BinlogOuterClass.Binlog |
parseFrom(com.google.protobuf.ByteString data) |
static BinlogOuterClass.Binlog |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BinlogOuterClass.Binlog |
parseFrom(com.google.protobuf.CodedInputStream input) |
static BinlogOuterClass.Binlog |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BinlogOuterClass.Binlog |
parseFrom(InputStream input) |
static BinlogOuterClass.Binlog |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<BinlogOuterClass.Binlog> |
parser() |
BinlogOuterClass.Binlog.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TP_FIELD_NUMBER
public static final int START_TS_FIELD_NUMBER
public static final int COMMIT_TS_FIELD_NUMBER
public static final int PREWRITE_KEY_FIELD_NUMBER
public static final int PREWRITE_VALUE_FIELD_NUMBER
public static final int DDL_QUERY_FIELD_NUMBER
public static final int DDL_JOB_ID_FIELD_NUMBER
public static final int DDL_SCHEMA_STATE_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<BinlogOuterClass.Binlog> PARSER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasTp()
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false];hasTp in interface BinlogOuterClass.BinlogOrBuilderpublic BinlogOuterClass.BinlogType getTp()
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false];getTp in interface BinlogOuterClass.BinlogOrBuilderpublic boolean hasStartTs()
start_ts is used in Prewrite, Commit and Rollback binlog Type. It is used for pairing prewrite log to commit log or rollback log.
optional int64 start_ts = 2 [(.gogoproto.nullable) = false];hasStartTs in interface BinlogOuterClass.BinlogOrBuilderpublic long getStartTs()
start_ts is used in Prewrite, Commit and Rollback binlog Type. It is used for pairing prewrite log to commit log or rollback log.
optional int64 start_ts = 2 [(.gogoproto.nullable) = false];getStartTs in interface BinlogOuterClass.BinlogOrBuilderpublic boolean hasCommitTs()
commit_ts is used only in binlog type Commit.
optional int64 commit_ts = 3 [(.gogoproto.nullable) = false];hasCommitTs in interface BinlogOuterClass.BinlogOrBuilderpublic long getCommitTs()
commit_ts is used only in binlog type Commit.
optional int64 commit_ts = 3 [(.gogoproto.nullable) = false];getCommitTs in interface BinlogOuterClass.BinlogOrBuilderpublic boolean hasPrewriteKey()
prewrite key is used only in Prewrite binlog type. It is the primary key of the transaction, is used to check that the transaction is commited or not if it failed to pair to commit log or rollback log within a time window.
optional bytes prewrite_key = 4;hasPrewriteKey in interface BinlogOuterClass.BinlogOrBuilderpublic com.google.protobuf.ByteString getPrewriteKey()
prewrite key is used only in Prewrite binlog type. It is the primary key of the transaction, is used to check that the transaction is commited or not if it failed to pair to commit log or rollback log within a time window.
optional bytes prewrite_key = 4;getPrewriteKey in interface BinlogOuterClass.BinlogOrBuilderpublic boolean hasPrewriteValue()
prewrite_data is marshalled from PrewriteData type, we do not need to unmarshal prewrite data before the binlog have been successfully paired.
optional bytes prewrite_value = 5;hasPrewriteValue in interface BinlogOuterClass.BinlogOrBuilderpublic com.google.protobuf.ByteString getPrewriteValue()
prewrite_data is marshalled from PrewriteData type, we do not need to unmarshal prewrite data before the binlog have been successfully paired.
optional bytes prewrite_value = 5;getPrewriteValue in interface BinlogOuterClass.BinlogOrBuilderpublic boolean hasDdlQuery()
ddl_query is the original DDL statement query.
optional bytes ddl_query = 6;hasDdlQuery in interface BinlogOuterClass.BinlogOrBuilderpublic com.google.protobuf.ByteString getDdlQuery()
ddl_query is the original DDL statement query.
optional bytes ddl_query = 6;getDdlQuery in interface BinlogOuterClass.BinlogOrBuilderpublic boolean hasDdlJobId()
ddl_job_id is used for DDL Binlog. If ddl_job_id is setted, this is a DDL Binlog and ddl_query contains the DDL query, we can query the informations about this job from TiKV.
optional int64 ddl_job_id = 7 [(.gogoproto.nullable) = false];hasDdlJobId in interface BinlogOuterClass.BinlogOrBuilderpublic long getDdlJobId()
ddl_job_id is used for DDL Binlog. If ddl_job_id is setted, this is a DDL Binlog and ddl_query contains the DDL query, we can query the informations about this job from TiKV.
optional int64 ddl_job_id = 7 [(.gogoproto.nullable) = false];getDdlJobId in interface BinlogOuterClass.BinlogOrBuilderpublic boolean hasDdlSchemaState()
ddl_schema_state is used for DDL Binlog.
optional int32 ddl_schema_state = 8 [(.gogoproto.nullable) = false];hasDdlSchemaState in interface BinlogOuterClass.BinlogOrBuilderpublic int getDdlSchemaState()
ddl_schema_state is used for DDL Binlog.
optional int32 ddl_schema_state = 8 [(.gogoproto.nullable) = false];getDdlSchemaState in interface BinlogOuterClass.BinlogOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static BinlogOuterClass.Binlog parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BinlogOuterClass.Binlog parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BinlogOuterClass.Binlog parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BinlogOuterClass.Binlog parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BinlogOuterClass.Binlog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BinlogOuterClass.Binlog parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BinlogOuterClass.Binlog parseFrom(InputStream input) throws IOException
IOExceptionpublic static BinlogOuterClass.Binlog parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BinlogOuterClass.Binlog parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static BinlogOuterClass.Binlog parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BinlogOuterClass.Binlog parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static BinlogOuterClass.Binlog parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic BinlogOuterClass.Binlog.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static BinlogOuterClass.Binlog.Builder newBuilder()
public static BinlogOuterClass.Binlog.Builder newBuilder(BinlogOuterClass.Binlog prototype)
public BinlogOuterClass.Binlog.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected BinlogOuterClass.Binlog.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static BinlogOuterClass.Binlog getDefaultInstance()
public static com.google.protobuf.Parser<BinlogOuterClass.Binlog> parser()
public com.google.protobuf.Parser<BinlogOuterClass.Binlog> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public BinlogOuterClass.Binlog getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 PingCAP. All rights reserved.