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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
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 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 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 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 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 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 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 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 final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static BinlogOuterClass.Binlog parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BinlogOuterClass.Binlog parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BinlogOuterClass.Binlog parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BinlogOuterClass.Binlog parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BinlogOuterClass.Binlog parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BinlogOuterClass.Binlog parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static BinlogOuterClass.Binlog parseFrom(InputStream input) throws IOException
IOException
public static BinlogOuterClass.Binlog parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static BinlogOuterClass.Binlog parseDelimitedFrom(InputStream input) throws IOException
IOException
public static BinlogOuterClass.Binlog parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static BinlogOuterClass.Binlog parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static BinlogOuterClass.Binlog parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public BinlogOuterClass.Binlog.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected BinlogOuterClass.Binlog.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public BinlogOuterClass.Binlog getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2024 PingCAP. All rights reserved.