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
Modifier and Type | Method and Description |
---|---|
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, 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<Kvrpcpb.CheckTxnStatusRequest.Builder>
public Kvrpcpb.CheckTxnStatusRequest.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<Kvrpcpb.CheckTxnStatusRequest.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<Kvrpcpb.CheckTxnStatusRequest.Builder>
public Kvrpcpb.CheckTxnStatusRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Kvrpcpb.CheckTxnStatusRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.CheckTxnStatusRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.CheckTxnStatusRequest.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<Kvrpcpb.CheckTxnStatusRequest.Builder>
public Kvrpcpb.CheckTxnStatusRequest.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<Kvrpcpb.CheckTxnStatusRequest.Builder>
public Kvrpcpb.CheckTxnStatusRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>
public Kvrpcpb.CheckTxnStatusRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>
public Kvrpcpb.CheckTxnStatusRequest.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<Kvrpcpb.CheckTxnStatusRequest.Builder>
public Kvrpcpb.CheckTxnStatusRequest.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<Kvrpcpb.CheckTxnStatusRequest.Builder>
public Kvrpcpb.CheckTxnStatusRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>
public Kvrpcpb.CheckTxnStatusRequest.Builder mergeFrom(Kvrpcpb.CheckTxnStatusRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class 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
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>
IOException
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.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;
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 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;
value
- The primaryKey to set.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;
getLockTs
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
public Kvrpcpb.CheckTxnStatusRequest.Builder setLockTs(long value)
Starting timestamp of the transaction being checked.
uint64 lock_ts = 3;
value
- The lockTs to set.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;
getCallerStartTs
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
public Kvrpcpb.CheckTxnStatusRequest.Builder setCallerStartTs(long value)
The start timestamp of the transaction which this request is part of.
uint64 caller_start_ts = 4;
value
- The callerStartTs to set.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;
getCurrentTs
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
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;
value
- The currentTs to set.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;
getRollbackIfNotExist
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
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;
value
- The rollbackIfNotExist to set.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;
getForceSyncCommit
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
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;
value
- The forceSyncCommit to set.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;
getResolvingPessimisticLock
in interface Kvrpcpb.CheckTxnStatusRequestOrBuilder
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;
value
- The resolvingPessimisticLock to set.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
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>
public final Kvrpcpb.CheckTxnStatusRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.CheckTxnStatusRequest.Builder>
Copyright © 2024 PingCAP. All rights reserved.