public static interface Kvrpcpb.PrewriteRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
Kvrpcpb.AssertionLevel |
getAssertionLevel()
The level of assertion to use on this prewrte request.
|
int |
getAssertionLevelValue()
The level of assertion to use on this prewrte request.
|
Kvrpcpb.Context |
getContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ContextOrBuilder |
getContextOrBuilder()
.kvrpcpb.Context context = 1; |
long |
getForUpdateTs()
For pessimistic transactions only; used to check if a conflict lock is already committed.
|
boolean |
getIsPessimisticLock(int index)
For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
|
int |
getIsPessimisticLockCount()
For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
|
List<Boolean> |
getIsPessimisticLockList()
For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
|
long |
getLockTtl()
uint64 lock_ttl = 5; |
long |
getMaxCommitTs()
The max commit ts is reserved for limiting the commit ts of 1PC or async commit, which can be used to avoid
inconsistency with schema change.
|
long |
getMinCommitTs()
If min_commit_ts > 0, this is a large transaction request, the final commit_ts
will be inferred from `min_commit_ts`.
|
Kvrpcpb.Mutation |
getMutations(int index)
The data to be written to the database.
|
int |
getMutationsCount()
The data to be written to the database.
|
List<Kvrpcpb.Mutation> |
getMutationsList()
The data to be written to the database.
|
Kvrpcpb.MutationOrBuilder |
getMutationsOrBuilder(int index)
The data to be written to the database.
|
List<? extends Kvrpcpb.MutationOrBuilder> |
getMutationsOrBuilderList()
The data to be written to the database.
|
com.google.protobuf.ByteString |
getPrimaryLock()
The client picks one key to be primary (unrelated to the primary key concept in SQL).
|
com.google.protobuf.ByteString |
getSecondaries(int index)
repeated bytes secondaries = 12; |
int |
getSecondariesCount()
repeated bytes secondaries = 12; |
List<com.google.protobuf.ByteString> |
getSecondariesList()
repeated bytes secondaries = 12; |
boolean |
getSkipConstraintCheck()
TiKV can skip some checks, used for speeding up data migration.
|
long |
getStartVersion()
Identifies the transaction being written.
|
boolean |
getTryOnePc()
When the transaction involves only one region, it's possible to commit the transaction
directly with 1PC protocol.
|
long |
getTxnSize()
How many keys this transaction involves in this region.
|
boolean |
getUseAsyncCommit()
When async commit is enabled, `secondaries` should be set as the key list of all secondary
locks if the request prewrites the primary lock.
|
boolean |
hasContext()
.kvrpcpb.Context context = 1; |
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
boolean hasContext()
.kvrpcpb.Context context = 1;
Kvrpcpb.Context getContext()
.kvrpcpb.Context context = 1;
Kvrpcpb.ContextOrBuilder getContextOrBuilder()
.kvrpcpb.Context context = 1;
List<Kvrpcpb.Mutation> getMutationsList()
The data to be written to the database.
repeated .kvrpcpb.Mutation mutations = 2;
Kvrpcpb.Mutation getMutations(int index)
The data to be written to the database.
repeated .kvrpcpb.Mutation mutations = 2;
int getMutationsCount()
The data to be written to the database.
repeated .kvrpcpb.Mutation mutations = 2;
List<? extends Kvrpcpb.MutationOrBuilder> getMutationsOrBuilderList()
The data to be written to the database.
repeated .kvrpcpb.Mutation mutations = 2;
Kvrpcpb.MutationOrBuilder getMutationsOrBuilder(int index)
The data to be written to the database.
repeated .kvrpcpb.Mutation mutations = 2;
com.google.protobuf.ByteString getPrimaryLock()
The client picks one key to be primary (unrelated to the primary key concept in SQL). This key's lock is the source of truth for the state of a transaction. All other locks due to a transaction will point to the primary lock.
bytes primary_lock = 3;
long getStartVersion()
Identifies the transaction being written.
uint64 start_version = 4;
long getLockTtl()
uint64 lock_ttl = 5;
boolean getSkipConstraintCheck()
TiKV can skip some checks, used for speeding up data migration.
bool skip_constraint_check = 6;
List<Boolean> getIsPessimisticLockList()
For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
repeated bool is_pessimistic_lock = 7;
int getIsPessimisticLockCount()
For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
repeated bool is_pessimistic_lock = 7;
boolean getIsPessimisticLock(int index)
For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
repeated bool is_pessimistic_lock = 7;
index
- The index of the element to return.long getTxnSize()
How many keys this transaction involves in this region.
uint64 txn_size = 8;
long getForUpdateTs()
For pessimistic transactions only; used to check if a conflict lock is already committed.
uint64 for_update_ts = 9;
long getMinCommitTs()
If min_commit_ts > 0, this is a large transaction request, the final commit_ts will be inferred from `min_commit_ts`.
uint64 min_commit_ts = 10;
boolean getUseAsyncCommit()
When async commit is enabled, `secondaries` should be set as the key list of all secondary locks if the request prewrites the primary lock.
bool use_async_commit = 11;
List<com.google.protobuf.ByteString> getSecondariesList()
repeated bytes secondaries = 12;
int getSecondariesCount()
repeated bytes secondaries = 12;
com.google.protobuf.ByteString getSecondaries(int index)
repeated bytes secondaries = 12;
index
- The index of the element to return.boolean getTryOnePc()
When the transaction involves only one region, it's possible to commit the transaction directly with 1PC protocol.
bool try_one_pc = 13;
long getMaxCommitTs()
The max commit ts is reserved for limiting the commit ts of 1PC or async commit, which can be used to avoid inconsistency with schema change.
uint64 max_commit_ts = 14;
int getAssertionLevelValue()
The level of assertion to use on this prewrte request.
.kvrpcpb.AssertionLevel assertion_level = 15;
Kvrpcpb.AssertionLevel getAssertionLevel()
The level of assertion to use on this prewrte request.
.kvrpcpb.AssertionLevel assertion_level = 15;
Copyright © 2024 PingCAP. All rights reserved.