Package io.dingodb.store
Interface Store.TxnPrewriteRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Store.TxnPrewriteRequest,Store.TxnPrewriteRequest.Builder
- Enclosing class:
- Store
public static interface Store.TxnPrewriteRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescription.dingodb.pb.store.Context context = 2;.dingodb.pb.store.Context context = 2;getForUpdateTsChecks(int index) fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.intfo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.getForUpdateTsChecksOrBuilder(int index) fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.getLockExtraDatas(int index) for both pessimistic and optimistic transaction the extra_data executor want to store in lockintfor both pessimistic and optimistic transaction the extra_data executor want to store in lockfor both pessimistic and optimistic transaction the extra_data executor want to store in lockgetLockExtraDatasOrBuilder(int index) for both pessimistic and optimistic transaction the extra_data executor want to store in lockfor both pessimistic and optimistic transaction the extra_data executor want to store in locklongthe lock's ttl is timestamp in milisecond.longThe max commit ts is reserved for limiting the commit ts of 1PC, which can be used to avoid inconsistency with schema change.longIf min_commit_ts > 0, this is a large transaction request, the final commit_ts will be inferred from `min_commit_ts`.getMutations(int index) The data to be written to the database.intThe data to be written to the database.The data to be written to the database.getMutationsOrBuilder(int index) The data to be written to the database.List<? extends Store.MutationOrBuilder>The data to be written to the database.getPessimisticChecks(int index) for pessimistic transaction check if the keys is locked by pessimistic transactionintfor pessimistic transaction check if the keys is locked by pessimistic transactionfor pessimistic transaction check if the keys is locked by pessimistic transactionintgetPessimisticChecksValue(int index) for pessimistic transaction check if the keys is locked by pessimistic transactionfor pessimistic transaction check if the keys is locked by pessimistic transactioncom.google.protobuf.ByteStringThe primary lock of the transaction is setup by client.dingodb.pb.common.RequestInfo request_info = 1;.dingodb.pb.common.RequestInfo request_info = 1;com.google.protobuf.ByteStringgetSecondaries(int index) repeated bytes secondaries = 15;intrepeated bytes secondaries = 15;List<com.google.protobuf.ByteString>repeated bytes secondaries = 15;longIdentifies the transaction being written.booleanWhen the transaction involves only one region, it's possible to commit the transaction directly with 1PC protocol.longthe number of keys involved in the transactionbooleanWhen async commit is enabled, `secondaries` should be set as the key list of all secondary locks if the request prewrites the primary lock.boolean.dingodb.pb.store.Context context = 2;boolean.dingodb.pb.common.RequestInfo request_info = 1;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasRequestInfo
boolean hasRequestInfo().dingodb.pb.common.RequestInfo request_info = 1;- Returns:
- Whether the requestInfo field is set.
-
getRequestInfo
Common.RequestInfo getRequestInfo().dingodb.pb.common.RequestInfo request_info = 1;- Returns:
- The requestInfo.
-
getRequestInfoOrBuilder
Common.RequestInfoOrBuilder getRequestInfoOrBuilder().dingodb.pb.common.RequestInfo request_info = 1; -
hasContext
boolean hasContext().dingodb.pb.store.Context context = 2;- Returns:
- Whether the context field is set.
-
getContext
Store.Context getContext().dingodb.pb.store.Context context = 2;- Returns:
- The context.
-
getContextOrBuilder
Store.ContextOrBuilder getContextOrBuilder().dingodb.pb.store.Context context = 2; -
getMutationsList
List<Store.Mutation> getMutationsList()The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getMutations
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getMutationsCount
int getMutationsCount()The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getMutationsOrBuilderList
List<? extends Store.MutationOrBuilder> getMutationsOrBuilderList()The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getMutationsOrBuilder
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getPrimaryLock
com.google.protobuf.ByteString getPrimaryLock()The primary lock of the transaction is setup by client
bytes primary_lock = 4;- Returns:
- The primaryLock.
-
getStartTs
long getStartTs()Identifies the transaction being written.
int64 start_ts = 5;- Returns:
- The startTs.
-
getLockTtl
long getLockTtl()the lock's ttl is timestamp in milisecond.
int64 lock_ttl = 6;- Returns:
- The lockTtl.
-
getTxnSize
long getTxnSize()the number of keys involved in the transaction
int64 txn_size = 7;- Returns:
- The txnSize.
-
getTryOnePc
boolean getTryOnePc()When the transaction involves only one region, it's possible to commit the transaction directly with 1PC protocol.
bool try_one_pc = 8;- Returns:
- The tryOnePc.
-
getMaxCommitTs
long getMaxCommitTs()The max commit ts is reserved for limiting the commit ts of 1PC, which can be used to avoid inconsistency with schema change. This field is unused now.
int64 max_commit_ts = 9;- Returns:
- The maxCommitTs.
-
getPessimisticChecksList
List<Store.TxnPrewriteRequest.PessimisticCheck> getPessimisticChecksList()for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Returns:
- A list containing the pessimisticChecks.
-
getPessimisticChecksCount
int getPessimisticChecksCount()for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Returns:
- The count of pessimisticChecks.
-
getPessimisticChecks
for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Parameters:
index- The index of the element to return.- Returns:
- The pessimisticChecks at the given index.
-
getPessimisticChecksValueList
for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Returns:
- A list containing the enum numeric values on the wire for pessimisticChecks.
-
getPessimisticChecksValue
int getPessimisticChecksValue(int index) for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of pessimisticChecks at the given index.
-
getForUpdateTsChecksList
List<Store.TxnPrewriteRequest.ForUpdateTsCheck> getForUpdateTsChecksList()fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.
repeated .dingodb.pb.store.TxnPrewriteRequest.ForUpdateTsCheck for_update_ts_checks = 11; -
getForUpdateTsChecks
fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.
repeated .dingodb.pb.store.TxnPrewriteRequest.ForUpdateTsCheck for_update_ts_checks = 11; -
getForUpdateTsChecksCount
int getForUpdateTsChecksCount()fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.
repeated .dingodb.pb.store.TxnPrewriteRequest.ForUpdateTsCheck for_update_ts_checks = 11; -
getForUpdateTsChecksOrBuilderList
List<? extends Store.TxnPrewriteRequest.ForUpdateTsCheckOrBuilder> getForUpdateTsChecksOrBuilderList()fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.
repeated .dingodb.pb.store.TxnPrewriteRequest.ForUpdateTsCheck for_update_ts_checks = 11; -
getForUpdateTsChecksOrBuilder
fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.
repeated .dingodb.pb.store.TxnPrewriteRequest.ForUpdateTsCheck for_update_ts_checks = 11; -
getLockExtraDatasList
List<Store.TxnPrewriteRequest.LockExtraData> getLockExtraDatasList()for both pessimistic and optimistic transaction the extra_data executor want to store in lock
repeated .dingodb.pb.store.TxnPrewriteRequest.LockExtraData lock_extra_datas = 12; -
getLockExtraDatas
for both pessimistic and optimistic transaction the extra_data executor want to store in lock
repeated .dingodb.pb.store.TxnPrewriteRequest.LockExtraData lock_extra_datas = 12; -
getLockExtraDatasCount
int getLockExtraDatasCount()for both pessimistic and optimistic transaction the extra_data executor want to store in lock
repeated .dingodb.pb.store.TxnPrewriteRequest.LockExtraData lock_extra_datas = 12; -
getLockExtraDatasOrBuilderList
List<? extends Store.TxnPrewriteRequest.LockExtraDataOrBuilder> getLockExtraDatasOrBuilderList()for both pessimistic and optimistic transaction the extra_data executor want to store in lock
repeated .dingodb.pb.store.TxnPrewriteRequest.LockExtraData lock_extra_datas = 12; -
getLockExtraDatasOrBuilder
for both pessimistic and optimistic transaction the extra_data executor want to store in lock
repeated .dingodb.pb.store.TxnPrewriteRequest.LockExtraData lock_extra_datas = 12; -
getMinCommitTs
long getMinCommitTs()If min_commit_ts > 0, this is a large transaction request, the final commit_ts will be inferred from `min_commit_ts`.
int64 min_commit_ts = 13;- Returns:
- The minCommitTs.
-
getUseAsyncCommit
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 = 14;- Returns:
- The useAsyncCommit.
-
getSecondariesList
List<com.google.protobuf.ByteString> getSecondariesList()repeated bytes secondaries = 15;- Returns:
- A list containing the secondaries.
-
getSecondariesCount
int getSecondariesCount()repeated bytes secondaries = 15;- Returns:
- The count of secondaries.
-
getSecondaries
com.google.protobuf.ByteString getSecondaries(int index) repeated bytes secondaries = 15;- Parameters:
index- The index of the element to return.- Returns:
- The secondaries at the given index.
-