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
Modifier and Type | Method and Description |
---|---|
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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>
public BinlogOuterClass.Binlog.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>
public BinlogOuterClass.Binlog getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public BinlogOuterClass.Binlog build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public BinlogOuterClass.Binlog buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public BinlogOuterClass.Binlog.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>
public BinlogOuterClass.Binlog.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>
public BinlogOuterClass.Binlog.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>
public BinlogOuterClass.Binlog.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>
public BinlogOuterClass.Binlog.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>
public BinlogOuterClass.Binlog.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>
public BinlogOuterClass.Binlog.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BinlogOuterClass.Binlog.Builder>
public BinlogOuterClass.Binlog.Builder mergeFrom(BinlogOuterClass.Binlog other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class 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
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BinlogOuterClass.Binlog.Builder>
IOException
public boolean hasTp()
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false];
hasTp
in interface BinlogOuterClass.BinlogOrBuilder
public BinlogOuterClass.BinlogType getTp()
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false];
getTp
in interface BinlogOuterClass.BinlogOrBuilder
public BinlogOuterClass.Binlog.Builder setTp(BinlogOuterClass.BinlogType value)
optional .binlog.BinlogType tp = 1 [(.gogoproto.nullable) = false];
value
- The tp to set.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
in interface BinlogOuterClass.BinlogOrBuilder
public 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.BinlogOrBuilder
public 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];
value
- The startTs to set.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
in interface BinlogOuterClass.BinlogOrBuilder
public long getCommitTs()
commit_ts is used only in binlog type Commit.
optional int64 commit_ts = 3 [(.gogoproto.nullable) = false];
getCommitTs
in interface BinlogOuterClass.BinlogOrBuilder
public BinlogOuterClass.Binlog.Builder setCommitTs(long value)
commit_ts is used only in binlog type Commit.
optional int64 commit_ts = 3 [(.gogoproto.nullable) = false];
value
- The commitTs to set.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;
hasPrewriteKey
in interface BinlogOuterClass.BinlogOrBuilder
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;
getPrewriteKey
in interface BinlogOuterClass.BinlogOrBuilder
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;
value
- The prewriteKey to set.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;
hasPrewriteValue
in interface BinlogOuterClass.BinlogOrBuilder
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;
getPrewriteValue
in interface BinlogOuterClass.BinlogOrBuilder
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;
value
- The prewriteValue to set.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
in interface BinlogOuterClass.BinlogOrBuilder
public com.google.protobuf.ByteString getDdlQuery()
ddl_query is the original DDL statement query.
optional bytes ddl_query = 6;
getDdlQuery
in interface BinlogOuterClass.BinlogOrBuilder
public BinlogOuterClass.Binlog.Builder setDdlQuery(com.google.protobuf.ByteString value)
ddl_query is the original DDL statement query.
optional bytes ddl_query = 6;
value
- The ddlQuery to set.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
in interface BinlogOuterClass.BinlogOrBuilder
public 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.BinlogOrBuilder
public 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];
value
- The ddlJobId to set.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];
hasDdlSchemaState
in interface BinlogOuterClass.BinlogOrBuilder
public int getDdlSchemaState()
ddl_schema_state is used for DDL Binlog.
optional int32 ddl_schema_state = 8 [(.gogoproto.nullable) = false];
getDdlSchemaState
in interface BinlogOuterClass.BinlogOrBuilder
public BinlogOuterClass.Binlog.Builder setDdlSchemaState(int value)
ddl_schema_state is used for DDL Binlog.
optional int32 ddl_schema_state = 8 [(.gogoproto.nullable) = false];
value
- The ddlSchemaState to set.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
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>
public final BinlogOuterClass.Binlog.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BinlogOuterClass.Binlog.Builder>
Copyright © 2024 PingCAP. All rights reserved.