Package io.dingodb.store
Interface Store.TxnPessimisticLockRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Store.TxnPessimisticLockRequest,Store.TxnPessimisticLockRequest.Builder
- Enclosing class:
- Store
public static interface Store.TxnPessimisticLockRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescription.dingodb.pb.store.Context context = 2;.dingodb.pb.store.Context context = 2;longEach locking command in a pessimistic transaction has its own timestamp oracle.longthe lock's ttl is timestamp in milisecond, it's the absolute timestamp when the lock is expired.getMutations(int index) In this case every `Op` of the mutations must be `PessimisticLock`.intIn this case every `Op` of the mutations must be `PessimisticLock`.In this case every `Op` of the mutations must be `PessimisticLock`.getMutationsOrBuilder(int index) In this case every `Op` of the mutations must be `PessimisticLock`.List<? extends Store.MutationOrBuilder>In this case every `Op` of the mutations must be `PessimisticLock`.com.google.protobuf.ByteStringbytes primary_lock = 4;.dingodb.pb.common.RequestInfo request_info = 1;.dingodb.pb.common.RequestInfo request_info = 1;booleanIf it is true, store will return values of the keys if no error, so executor can cache the values for later read in the same transaction.longuint64 start_ts = 5;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()In this case every `Op` of the mutations must be `PessimisticLock`.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getMutations
In this case every `Op` of the mutations must be `PessimisticLock`.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getMutationsCount
int getMutationsCount()In this case every `Op` of the mutations must be `PessimisticLock`.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getMutationsOrBuilderList
List<? extends Store.MutationOrBuilder> getMutationsOrBuilderList()In this case every `Op` of the mutations must be `PessimisticLock`.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getMutationsOrBuilder
In this case every `Op` of the mutations must be `PessimisticLock`.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getPrimaryLock
com.google.protobuf.ByteString getPrimaryLock()bytes primary_lock = 4;- Returns:
- The primaryLock.
-
getStartTs
long getStartTs()uint64 start_ts = 5;- Returns:
- The startTs.
-
getLockTtl
long getLockTtl()the lock's ttl is timestamp in milisecond, it's the absolute timestamp when the lock is expired.
uint64 lock_ttl = 6;- Returns:
- The lockTtl.
-
getForUpdateTs
long getForUpdateTs()Each locking command in a pessimistic transaction has its own timestamp oracle. If locking fails, then the corresponding SQL statement can be retried with a later timestamp oracle, Executor does not need to retry the whole transaction. The name comes from the `SELECT ... FOR UPDATE` SQL statement which is a locking read. Each `SELECT ... FOR UPDATE` in a transaction will be assigned its own timestamp oracle.
uint64 for_update_ts = 7;- Returns:
- The forUpdateTs.
-
getReturnValues
boolean getReturnValues()If it is true, store will return values of the keys if no error, so executor can cache the values for later read in the same transaction.
bool return_values = 8;- Returns:
- The returnValues.
-