public static final class Kvrpcpb.CheckTxnStatusRequest extends com.google.protobuf.GeneratedMessageV3 implements Kvrpcpb.CheckTxnStatusRequestOrBuilder
CheckTxnStatusRequest checks the status of a transaction. If the transaction is rollbacked/committed, return that result. If the TTL of the transaction is exhausted, abort that transaction and inform the caller. Otherwise, returns the TTL information for the transaction. CheckTxnStatusRequest may also push forward the minCommitTS of a large transaction.Protobuf type
kvrpcpb.CheckTxnStatusRequest
Modifier and Type | Class and Description |
---|---|
static class |
Kvrpcpb.CheckTxnStatusRequest.Builder
CheckTxnStatusRequest checks the status of a transaction.
|
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 |
CALLER_START_TS_FIELD_NUMBER |
static int |
CONTEXT_FIELD_NUMBER |
static int |
CURRENT_TS_FIELD_NUMBER |
static int |
FORCE_SYNC_COMMIT_FIELD_NUMBER |
static int |
LOCK_TS_FIELD_NUMBER |
static int |
PRIMARY_KEY_FIELD_NUMBER |
static int |
RESOLVING_PESSIMISTIC_LOCK_FIELD_NUMBER |
static int |
ROLLBACK_IF_NOT_EXIST_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getCallerStartTs()
The start timestamp of the transaction which this request is part of.
|
Kvrpcpb.Context |
getContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ContextOrBuilder |
getContextOrBuilder()
.kvrpcpb.Context context = 1; |
long |
getCurrentTs()
The client must specify the current time to TiKV using this timestamp.
|
static Kvrpcpb.CheckTxnStatusRequest |
getDefaultInstance() |
Kvrpcpb.CheckTxnStatusRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getForceSyncCommit()
This field is set to true only if the transaction is known to fall back from async commit.
|
long |
getLockTs()
Starting timestamp of the transaction being checked.
|
com.google.protobuf.Parser<Kvrpcpb.CheckTxnStatusRequest> |
getParserForType() |
com.google.protobuf.ByteString |
getPrimaryKey()
Primary key and lock ts together to locate the primary lock of a transaction.
|
boolean |
getResolvingPessimisticLock()
If the check request is used to resolve or decide the transaction status for a input pessimistic
lock, the transaction status could not be decided if the primary lock is pessimistic too and
it's still uncertain.
|
boolean |
getRollbackIfNotExist()
If true, then TiKV will leave a rollback tombstone in the write CF for `primary_key`, even if
that key is not locked.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasContext()
.kvrpcpb.Context context = 1; |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Kvrpcpb.CheckTxnStatusRequest.Builder |
newBuilder() |
static Kvrpcpb.CheckTxnStatusRequest.Builder |
newBuilder(Kvrpcpb.CheckTxnStatusRequest prototype) |
Kvrpcpb.CheckTxnStatusRequest.Builder |
newBuilderForType() |
protected Kvrpcpb.CheckTxnStatusRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Kvrpcpb.CheckTxnStatusRequest |
parseDelimitedFrom(InputStream input) |
static Kvrpcpb.CheckTxnStatusRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(byte[] data) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(ByteBuffer data) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(com.google.protobuf.ByteString data) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(InputStream input) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Kvrpcpb.CheckTxnStatusRequest> |
parser() |
Kvrpcpb.CheckTxnStatusRequest.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 CONTEXT_FIELD_NUMBER
public static final int PRIMARY_KEY_FIELD_NUMBER
public static final int LOCK_TS_FIELD_NUMBER
public static final int CALLER_START_TS_FIELD_NUMBER
public static final int CURRENT_TS_FIELD_NUMBER
public static final int ROLLBACK_IF_NOT_EXIST_FIELD_NUMBER
public static final int FORCE_SYNC_COMMIT_FIELD_NUMBER
public static final int RESOLVING_PESSIMISTIC_LOCK_FIELD_NUMBER
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 hasContext()
.kvrpcpb.Context context = 1;
hasContext
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
public Kvrpcpb.Context getContext()
.kvrpcpb.Context context = 1;
getContext
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
public Kvrpcpb.ContextOrBuilder getContextOrBuilder()
.kvrpcpb.Context context = 1;
getContextOrBuilder
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
public com.google.protobuf.ByteString getPrimaryKey()
Primary key and lock ts together to locate the primary lock of a transaction.
bytes primary_key = 2;
getPrimaryKey
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
public long getLockTs()
Starting timestamp of the transaction being checked.
uint64 lock_ts = 3;
getLockTs
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
public long getCallerStartTs()
The start timestamp of the transaction which this request is part of.
uint64 caller_start_ts = 4;
getCallerStartTs
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
public long getCurrentTs()
The client must specify the current time to TiKV using this timestamp. It is used to check TTL timeouts. It may be inaccurate.
uint64 current_ts = 5;
getCurrentTs
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
public boolean getRollbackIfNotExist()
If true, then TiKV will leave a rollback tombstone in the write CF for `primary_key`, even if that key is not locked.
bool rollback_if_not_exist = 6;
getRollbackIfNotExist
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
public boolean getForceSyncCommit()
This field is set to true only if the transaction is known to fall back from async commit. Then, CheckTxnStatus treats the transaction as non-async-commit even if the use_async_commit field in the primary lock is true.
bool force_sync_commit = 7;
getForceSyncCommit
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
public boolean getResolvingPessimisticLock()
If the check request is used to resolve or decide the transaction status for a input pessimistic lock, the transaction status could not be decided if the primary lock is pessimistic too and it's still uncertain.
bool resolving_pessimistic_lock = 8;
getResolvingPessimisticLock
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
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 Kvrpcpb.CheckTxnStatusRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Kvrpcpb.CheckTxnStatusRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Kvrpcpb.CheckTxnStatusRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Kvrpcpb.CheckTxnStatusRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Kvrpcpb.CheckTxnStatusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Kvrpcpb.CheckTxnStatusRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Kvrpcpb.CheckTxnStatusRequest parseFrom(InputStream input) throws IOException
IOException
public static Kvrpcpb.CheckTxnStatusRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Kvrpcpb.CheckTxnStatusRequest parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Kvrpcpb.CheckTxnStatusRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Kvrpcpb.CheckTxnStatusRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Kvrpcpb.CheckTxnStatusRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Kvrpcpb.CheckTxnStatusRequest.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Kvrpcpb.CheckTxnStatusRequest.Builder newBuilder()
public static Kvrpcpb.CheckTxnStatusRequest.Builder newBuilder(Kvrpcpb.CheckTxnStatusRequest prototype)
public Kvrpcpb.CheckTxnStatusRequest.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Kvrpcpb.CheckTxnStatusRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static Kvrpcpb.CheckTxnStatusRequest getDefaultInstance()
public static com.google.protobuf.Parser<Kvrpcpb.CheckTxnStatusRequest> parser()
public com.google.protobuf.Parser<Kvrpcpb.CheckTxnStatusRequest> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Kvrpcpb.CheckTxnStatusRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2024 PingCAP. All rights reserved.