public static final class BinlogOuterClass.Binlog.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder> 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| 限定符和类型 | 方法和说明 |
|---|---|
BinlogOuterClass.Binlog.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BinlogOuterClass.Binlog |
build() |
BinlogOuterClass.Binlog |
buildPartial() |
BinlogOuterClass.Binlog.Builder |
clear() |
BinlogOuterClass.Binlog.Builder |
clearCommitTs()
commit_ts is used only in binlog type Commit.
|
BinlogOuterClass.Binlog.Builder |
clearDdlJobId()
ddl_job_id is used for DDL Binlog.
|
BinlogOuterClass.Binlog.Builder |
clearDdlQuery()
ddl_query is the original DDL statement query.
|
BinlogOuterClass.Binlog.Builder |
clearDdlSchemaState()
ddl_schema_state is used for DDL Binlog.
|
BinlogOuterClass.Binlog.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BinlogOuterClass.Binlog.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BinlogOuterClass.Binlog.Builder |
clearPrewriteKey()
prewrite key is used only in Prewrite binlog type.
|
BinlogOuterClass.Binlog.Builder |
clearPrewriteValue()
prewrite_data is marshalled from PrewriteData type,
we do not need to unmarshal prewrite data before the binlog have been successfully paired.
|
BinlogOuterClass.Binlog.Builder |
clearStartTs()
start_ts is used in Prewrite, Commit and Rollback binlog Type.
|
BinlogOuterClass.Binlog.Builder |
clearTp()
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false]; |
BinlogOuterClass.Binlog.Builder |
clone() |
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.
|
BinlogOuterClass.Binlog |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
long |
getStartTs()
start_ts is used in Prewrite, Commit and Rollback binlog Type.
|
BinlogOuterClass.BinlogType |
getTp()
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false]; |
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.
|
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() |
BinlogOuterClass.Binlog.Builder |
mergeFrom(BinlogOuterClass.Binlog other) |
BinlogOuterClass.Binlog.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BinlogOuterClass.Binlog.Builder |
mergeFrom(com.google.protobuf.Message other) |
BinlogOuterClass.Binlog.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BinlogOuterClass.Binlog.Builder |
setCommitTs(long value)
commit_ts is used only in binlog type Commit.
|
BinlogOuterClass.Binlog.Builder |
setDdlJobId(long value)
ddl_job_id is used for DDL Binlog.
|
BinlogOuterClass.Binlog.Builder |
setDdlQuery(com.google.protobuf.ByteString value)
ddl_query is the original DDL statement query.
|
BinlogOuterClass.Binlog.Builder |
setDdlSchemaState(int value)
ddl_schema_state is used for DDL Binlog.
|
BinlogOuterClass.Binlog.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BinlogOuterClass.Binlog.Builder |
setPrewriteKey(com.google.protobuf.ByteString value)
prewrite key is used only in Prewrite binlog type.
|
BinlogOuterClass.Binlog.Builder |
setPrewriteValue(com.google.protobuf.ByteString value)
prewrite_data is marshalled from PrewriteData type,
we do not need to unmarshal prewrite data before the binlog have been successfully paired.
|
BinlogOuterClass.Binlog.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BinlogOuterClass.Binlog.Builder |
setStartTs(long value)
start_ts is used in Prewrite, Commit and Rollback binlog Type.
|
BinlogOuterClass.Binlog.Builder |
setTp(BinlogOuterClass.BinlogType value)
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false]; |
BinlogOuterClass.Binlog.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>public BinlogOuterClass.Binlog.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>public BinlogOuterClass.Binlog getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic BinlogOuterClass.Binlog build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic BinlogOuterClass.Binlog buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic BinlogOuterClass.Binlog.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>public BinlogOuterClass.Binlog.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>public BinlogOuterClass.Binlog.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>public BinlogOuterClass.Binlog.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>public BinlogOuterClass.Binlog.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>public BinlogOuterClass.Binlog.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>public BinlogOuterClass.Binlog.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<BinlogOuterClass.Binlog.Builder>public BinlogOuterClass.Binlog.Builder mergeFrom(BinlogOuterClass.Binlog other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>public BinlogOuterClass.Binlog.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<BinlogOuterClass.Binlog.Builder>IOExceptionpublic boolean hasTp()
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false];hasTp 在接口中 BinlogOuterClass.BinlogOrBuilderpublic BinlogOuterClass.BinlogType getTp()
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false];getTp 在接口中 BinlogOuterClass.BinlogOrBuilderpublic BinlogOuterClass.Binlog.Builder setTp(BinlogOuterClass.BinlogType value)
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false];public BinlogOuterClass.Binlog.Builder clearTp()
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false];public 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 在接口中 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 在接口中 BinlogOuterClass.BinlogOrBuilderpublic BinlogOuterClass.Binlog.Builder setStartTs(long value)
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];public BinlogOuterClass.Binlog.Builder clearStartTs()
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];public boolean hasCommitTs()
commit_ts is used only in binlog type Commit.
optional int64 commit_ts = 3 [(.gogoproto.nullable) = false];hasCommitTs 在接口中 BinlogOuterClass.BinlogOrBuilderpublic long getCommitTs()
commit_ts is used only in binlog type Commit.
optional int64 commit_ts = 3 [(.gogoproto.nullable) = false];getCommitTs 在接口中 BinlogOuterClass.BinlogOrBuilderpublic BinlogOuterClass.Binlog.Builder setCommitTs(long value)
commit_ts is used only in binlog type Commit.
optional int64 commit_ts = 3 [(.gogoproto.nullable) = false];public BinlogOuterClass.Binlog.Builder clearCommitTs()
commit_ts is used only in binlog type Commit.
optional int64 commit_ts = 3 [(.gogoproto.nullable) = false];public 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;public 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;public BinlogOuterClass.Binlog.Builder setPrewriteKey(com.google.protobuf.ByteString value)
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;public BinlogOuterClass.Binlog.Builder clearPrewriteKey()
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;public 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;public 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;public BinlogOuterClass.Binlog.Builder setPrewriteValue(com.google.protobuf.ByteString value)
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;public BinlogOuterClass.Binlog.Builder clearPrewriteValue()
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;public boolean hasDdlQuery()
ddl_query is the original DDL statement query.
optional bytes ddl_query = 6;hasDdlQuery 在接口中 BinlogOuterClass.BinlogOrBuilderpublic com.google.protobuf.ByteString getDdlQuery()
ddl_query is the original DDL statement query.
optional bytes ddl_query = 6;getDdlQuery 在接口中 BinlogOuterClass.BinlogOrBuilderpublic BinlogOuterClass.Binlog.Builder setDdlQuery(com.google.protobuf.ByteString value)
ddl_query is the original DDL statement query.
optional bytes ddl_query = 6;public BinlogOuterClass.Binlog.Builder clearDdlQuery()
ddl_query is the original DDL statement query.
optional bytes ddl_query = 6;public 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 在接口中 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 在接口中 BinlogOuterClass.BinlogOrBuilderpublic BinlogOuterClass.Binlog.Builder setDdlJobId(long value)
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];public BinlogOuterClass.Binlog.Builder clearDdlJobId()
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];public boolean hasDdlSchemaState()
ddl_schema_state is used for DDL Binlog.
optional int32 ddl_schema_state = 8 [(.gogoproto.nullable) = false];public int getDdlSchemaState()
ddl_schema_state is used for DDL Binlog.
optional int32 ddl_schema_state = 8 [(.gogoproto.nullable) = false];public BinlogOuterClass.Binlog.Builder setDdlSchemaState(int value)
ddl_schema_state is used for DDL Binlog.
optional int32 ddl_schema_state = 8 [(.gogoproto.nullable) = false];public BinlogOuterClass.Binlog.Builder clearDdlSchemaState()
ddl_schema_state is used for DDL Binlog.
optional int32 ddl_schema_state = 8 [(.gogoproto.nullable) = false];public final BinlogOuterClass.Binlog.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>public final BinlogOuterClass.Binlog.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>Copyright © 2023 PingCAP. All rights reserved.