public static final class Kvrpcpb.CheckTxnStatusRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder> 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| 限定符和类型 | 方法和说明 |
|---|---|
Kvrpcpb.CheckTxnStatusRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.CheckTxnStatusRequest |
build() |
Kvrpcpb.CheckTxnStatusRequest |
buildPartial() |
Kvrpcpb.CheckTxnStatusRequest.Builder |
clear() |
Kvrpcpb.CheckTxnStatusRequest.Builder |
clearCallerStartTs()
The start timestamp of the transaction which this request is part of.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
clearContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.CheckTxnStatusRequest.Builder |
clearCurrentTs()
The client must specify the current time to TiKV using this timestamp.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Kvrpcpb.CheckTxnStatusRequest.Builder |
clearForceSyncCommit()
This field is set to true only if the transaction is known to fall back from async commit.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
clearLockTs()
Starting timestamp of the transaction being checked.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Kvrpcpb.CheckTxnStatusRequest.Builder |
clearPrimaryKey()
Primary key and lock ts together to locate the primary lock of a transaction.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
clearResolvingPessimisticLock()
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.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
clearRollbackIfNotExist()
If true, then TiKV will leave a rollback tombstone in the write CF for `primary_key`, even if
that key is not locked.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
clone() |
long |
getCallerStartTs()
The start timestamp of the transaction which this request is part of.
|
Kvrpcpb.Context |
getContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.Context.Builder |
getContextBuilder()
.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.
|
Kvrpcpb.CheckTxnStatusRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.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.
|
boolean |
hasContext()
.kvrpcpb.Context context = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Kvrpcpb.CheckTxnStatusRequest.Builder |
mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.CheckTxnStatusRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Kvrpcpb.CheckTxnStatusRequest.Builder |
mergeFrom(Kvrpcpb.CheckTxnStatusRequest other) |
Kvrpcpb.CheckTxnStatusRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
Kvrpcpb.CheckTxnStatusRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.CheckTxnStatusRequest.Builder |
setCallerStartTs(long value)
The start timestamp of the transaction which this request is part of.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1; |
Kvrpcpb.CheckTxnStatusRequest.Builder |
setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.CheckTxnStatusRequest.Builder |
setCurrentTs(long value)
The client must specify the current time to TiKV using this timestamp.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.CheckTxnStatusRequest.Builder |
setForceSyncCommit(boolean value)
This field is set to true only if the transaction is known to fall back from async commit.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
setLockTs(long value)
Starting timestamp of the transaction being checked.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
setPrimaryKey(com.google.protobuf.ByteString value)
Primary key and lock ts together to locate the primary lock of a transaction.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Kvrpcpb.CheckTxnStatusRequest.Builder |
setResolvingPessimisticLock(boolean value)
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.
|
Kvrpcpb.CheckTxnStatusRequest.Builder |
setRollbackIfNotExist(boolean value)
If true, then TiKV will leave a rollback tombstone in the write CF for `primary_key`, even if
that key is not locked.
|
Kvrpcpb.CheckTxnStatusRequest.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<Kvrpcpb.CheckTxnStatusRequest.Builder>public Kvrpcpb.CheckTxnStatusRequest.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>public Kvrpcpb.CheckTxnStatusRequest getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic Kvrpcpb.CheckTxnStatusRequest build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic Kvrpcpb.CheckTxnStatusRequest buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic Kvrpcpb.CheckTxnStatusRequest.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>public Kvrpcpb.CheckTxnStatusRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>public Kvrpcpb.CheckTxnStatusRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>public Kvrpcpb.CheckTxnStatusRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>public Kvrpcpb.CheckTxnStatusRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>public Kvrpcpb.CheckTxnStatusRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>public Kvrpcpb.CheckTxnStatusRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>public Kvrpcpb.CheckTxnStatusRequest.Builder mergeFrom(Kvrpcpb.CheckTxnStatusRequest other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>public Kvrpcpb.CheckTxnStatusRequest.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<Kvrpcpb.CheckTxnStatusRequest.Builder>IOExceptionpublic boolean hasContext()
.kvrpcpb.Context context = 1;public Kvrpcpb.Context getContext()
.kvrpcpb.Context context = 1;public Kvrpcpb.CheckTxnStatusRequest.Builder setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;public Kvrpcpb.CheckTxnStatusRequest.Builder setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1;public Kvrpcpb.CheckTxnStatusRequest.Builder mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;public Kvrpcpb.CheckTxnStatusRequest.Builder clearContext()
.kvrpcpb.Context context = 1;public Kvrpcpb.Context.Builder getContextBuilder()
.kvrpcpb.Context context = 1;public Kvrpcpb.ContextOrBuilder getContextOrBuilder()
.kvrpcpb.Context context = 1;public com.google.protobuf.ByteString getPrimaryKey()
Primary key and lock ts together to locate the primary lock of a transaction.
bytes primary_key = 2;public Kvrpcpb.CheckTxnStatusRequest.Builder setPrimaryKey(com.google.protobuf.ByteString value)
Primary key and lock ts together to locate the primary lock of a transaction.
bytes primary_key = 2;public Kvrpcpb.CheckTxnStatusRequest.Builder clearPrimaryKey()
Primary key and lock ts together to locate the primary lock of a transaction.
bytes primary_key = 2;public long getLockTs()
Starting timestamp of the transaction being checked.
uint64 lock_ts = 3;public Kvrpcpb.CheckTxnStatusRequest.Builder setLockTs(long value)
Starting timestamp of the transaction being checked.
uint64 lock_ts = 3;public Kvrpcpb.CheckTxnStatusRequest.Builder clearLockTs()
Starting timestamp of the transaction being checked.
uint64 lock_ts = 3;public long getCallerStartTs()
The start timestamp of the transaction which this request is part of.
uint64 caller_start_ts = 4;public Kvrpcpb.CheckTxnStatusRequest.Builder setCallerStartTs(long value)
The start timestamp of the transaction which this request is part of.
uint64 caller_start_ts = 4;public Kvrpcpb.CheckTxnStatusRequest.Builder clearCallerStartTs()
The start timestamp of the transaction which this request is part of.
uint64 caller_start_ts = 4;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;public Kvrpcpb.CheckTxnStatusRequest.Builder setCurrentTs(long value)
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;public Kvrpcpb.CheckTxnStatusRequest.Builder clearCurrentTs()
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;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;public Kvrpcpb.CheckTxnStatusRequest.Builder setRollbackIfNotExist(boolean value)
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;public Kvrpcpb.CheckTxnStatusRequest.Builder clearRollbackIfNotExist()
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;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;public Kvrpcpb.CheckTxnStatusRequest.Builder setForceSyncCommit(boolean value)
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;public Kvrpcpb.CheckTxnStatusRequest.Builder clearForceSyncCommit()
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;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;public Kvrpcpb.CheckTxnStatusRequest.Builder setResolvingPessimisticLock(boolean value)
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;public Kvrpcpb.CheckTxnStatusRequest.Builder clearResolvingPessimisticLock()
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;public final Kvrpcpb.CheckTxnStatusRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>public final Kvrpcpb.CheckTxnStatusRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>Copyright © 2023 PingCAP. All rights reserved.