Package io.dingodb.store
Interface Store.LockInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Store.LockInfo,Store.LockInfo.Builder
- Enclosing class:
- Store
public static interface Store.LockInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteStringwrite_info.short_valuelongthe for_update_ts of the pessimistic lockcom.google.protobuf.ByteStringgetKey()the key of the locklongthe start_ts of the transactionlongthe lock ttl timestamp in milisecondthe type of the lock, it can be put, delete, lockintthe type of the lock, it can be put, delete, locklongthe min_commit_ts of the transactioncom.google.protobuf.ByteStringthe primary lock of the transactioncom.google.protobuf.ByteStringgetSecondaries(int index) the key list of all secondary for transactions that are using Async Commit.intthe key list of all secondary for transactions that are using Async Commit.List<com.google.protobuf.ByteString>the key list of all secondary for transactions that are using Async Commit.com.google.protobuf.ByteStringthe short value will persist to lock_info, and do not write data, commit will set it tolongthe number of keys involved in the transactionbooleanbool use_async_commit = 11;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
-
getPrimaryLock
com.google.protobuf.ByteString getPrimaryLock()the primary lock of the transaction
bytes primary_lock = 1;- Returns:
- The primaryLock.
-
getKey
com.google.protobuf.ByteString getKey()the key of the lock
bytes key = 2;- Returns:
- The key.
-
getLockTs
long getLockTs()the start_ts of the transaction
int64 lock_ts = 3;- Returns:
- The lockTs.
-
getForUpdateTs
long getForUpdateTs()the for_update_ts of the pessimistic lock
int64 for_update_ts = 4;- Returns:
- The forUpdateTs.
-
getLockTtl
long getLockTtl()the lock ttl timestamp in milisecond
int64 lock_ttl = 5;- Returns:
- The lockTtl.
-
getTxnSize
long getTxnSize()the number of keys involved in the transaction
int64 txn_size = 6;- Returns:
- The txnSize.
-
getLockTypeValue
int getLockTypeValue()the type of the lock, it can be put, delete, lock
.dingodb.pb.store.Op lock_type = 7;- Returns:
- The enum numeric value on the wire for lockType.
-
getLockType
Store.Op getLockType()the type of the lock, it can be put, delete, lock
.dingodb.pb.store.Op lock_type = 7;- Returns:
- The lockType.
-
getShortValue
com.google.protobuf.ByteString getShortValue()the short value will persist to lock_info, and do not write data, commit will set it to
bytes short_value = 8;- Returns:
- The shortValue.
-
getExtraData
com.google.protobuf.ByteString getExtraData()write_info.short_value
bytes extra_data = 9;- Returns:
- The extraData.
-
getMinCommitTs
long getMinCommitTs()the min_commit_ts of the transaction
int64 min_commit_ts = 10;- Returns:
- The minCommitTs.
-
getUseAsyncCommit
boolean getUseAsyncCommit()bool use_async_commit = 11;- Returns:
- The useAsyncCommit.
-
getSecondariesList
List<com.google.protobuf.ByteString> getSecondariesList()the key list of all secondary for transactions that are using Async Commit.
repeated bytes secondaries = 12;- Returns:
- A list containing the secondaries.
-
getSecondariesCount
int getSecondariesCount()the key list of all secondary for transactions that are using Async Commit.
repeated bytes secondaries = 12;- Returns:
- The count of secondaries.
-
getSecondaries
com.google.protobuf.ByteString getSecondaries(int index) the key list of all secondary for transactions that are using Async Commit.
repeated bytes secondaries = 12;- Parameters:
index- The index of the element to return.- Returns:
- The secondaries at the given index.
-