Package io.dingodb.store
Class Store.LockInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.store.Store.LockInfo
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Store.LockInfoOrBuilder,Serializable
- Enclosing class:
- Store
public static final class Store.LockInfo
extends com.google.protobuf.GeneratedMessageV3
implements Store.LockInfoOrBuilder
Protobuf type
dingodb.pb.store.LockInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.store.LockInfoNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Store.LockInfostatic final com.google.protobuf.Descriptors.Descriptorcom.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.Parser<Store.LockInfo>com.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.intcom.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;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Store.LockInfo.Builderstatic Store.LockInfo.BuildernewBuilder(Store.LockInfo prototype) protected Store.LockInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Store.LockInfoparseDelimitedFrom(InputStream input) static Store.LockInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.LockInfoparseFrom(byte[] data) static Store.LockInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.LockInfoparseFrom(com.google.protobuf.ByteString data) static Store.LockInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.LockInfoparseFrom(com.google.protobuf.CodedInputStream input) static Store.LockInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.LockInfoparseFrom(InputStream input) static Store.LockInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.LockInfoparseFrom(ByteBuffer data) static Store.LockInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Store.LockInfo>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PRIMARY_LOCK_FIELD_NUMBER
public static final int PRIMARY_LOCK_FIELD_NUMBER- See Also:
-
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER- See Also:
-
LOCK_TS_FIELD_NUMBER
public static final int LOCK_TS_FIELD_NUMBER- See Also:
-
FOR_UPDATE_TS_FIELD_NUMBER
public static final int FOR_UPDATE_TS_FIELD_NUMBER- See Also:
-
LOCK_TTL_FIELD_NUMBER
public static final int LOCK_TTL_FIELD_NUMBER- See Also:
-
TXN_SIZE_FIELD_NUMBER
public static final int TXN_SIZE_FIELD_NUMBER- See Also:
-
LOCK_TYPE_FIELD_NUMBER
public static final int LOCK_TYPE_FIELD_NUMBER- See Also:
-
SHORT_VALUE_FIELD_NUMBER
public static final int SHORT_VALUE_FIELD_NUMBER- See Also:
-
EXTRA_DATA_FIELD_NUMBER
public static final int EXTRA_DATA_FIELD_NUMBER- See Also:
-
MIN_COMMIT_TS_FIELD_NUMBER
public static final int MIN_COMMIT_TS_FIELD_NUMBER- See Also:
-
USE_ASYNC_COMMIT_FIELD_NUMBER
public static final int USE_ASYNC_COMMIT_FIELD_NUMBER- See Also:
-
SECONDARIES_FIELD_NUMBER
public static final int SECONDARIES_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getPrimaryLock
public com.google.protobuf.ByteString getPrimaryLock()the primary lock of the transaction
bytes primary_lock = 1;- Specified by:
getPrimaryLockin interfaceStore.LockInfoOrBuilder- Returns:
- The primaryLock.
-
getKey
public com.google.protobuf.ByteString getKey()the key of the lock
bytes key = 2;- Specified by:
getKeyin interfaceStore.LockInfoOrBuilder- Returns:
- The key.
-
getLockTs
public long getLockTs()the start_ts of the transaction
int64 lock_ts = 3;- Specified by:
getLockTsin interfaceStore.LockInfoOrBuilder- Returns:
- The lockTs.
-
getForUpdateTs
public long getForUpdateTs()the for_update_ts of the pessimistic lock
int64 for_update_ts = 4;- Specified by:
getForUpdateTsin interfaceStore.LockInfoOrBuilder- Returns:
- The forUpdateTs.
-
getLockTtl
public long getLockTtl()the lock ttl timestamp in milisecond
int64 lock_ttl = 5;- Specified by:
getLockTtlin interfaceStore.LockInfoOrBuilder- Returns:
- The lockTtl.
-
getTxnSize
public long getTxnSize()the number of keys involved in the transaction
int64 txn_size = 6;- Specified by:
getTxnSizein interfaceStore.LockInfoOrBuilder- Returns:
- The txnSize.
-
getLockTypeValue
public int getLockTypeValue()the type of the lock, it can be put, delete, lock
.dingodb.pb.store.Op lock_type = 7;- Specified by:
getLockTypeValuein interfaceStore.LockInfoOrBuilder- Returns:
- The enum numeric value on the wire for lockType.
-
getLockType
the type of the lock, it can be put, delete, lock
.dingodb.pb.store.Op lock_type = 7;- Specified by:
getLockTypein interfaceStore.LockInfoOrBuilder- Returns:
- The lockType.
-
getShortValue
public 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;- Specified by:
getShortValuein interfaceStore.LockInfoOrBuilder- Returns:
- The shortValue.
-
getExtraData
public com.google.protobuf.ByteString getExtraData()write_info.short_value
bytes extra_data = 9;- Specified by:
getExtraDatain interfaceStore.LockInfoOrBuilder- Returns:
- The extraData.
-
getMinCommitTs
public long getMinCommitTs()the min_commit_ts of the transaction
int64 min_commit_ts = 10;- Specified by:
getMinCommitTsin interfaceStore.LockInfoOrBuilder- Returns:
- The minCommitTs.
-
getUseAsyncCommit
public boolean getUseAsyncCommit()bool use_async_commit = 11;- Specified by:
getUseAsyncCommitin interfaceStore.LockInfoOrBuilder- Returns:
- The useAsyncCommit.
-
getSecondariesList
the key list of all secondary for transactions that are using Async Commit.
repeated bytes secondaries = 12;- Specified by:
getSecondariesListin interfaceStore.LockInfoOrBuilder- Returns:
- A list containing the secondaries.
-
getSecondariesCount
public int getSecondariesCount()the key list of all secondary for transactions that are using Async Commit.
repeated bytes secondaries = 12;- Specified by:
getSecondariesCountin interfaceStore.LockInfoOrBuilder- Returns:
- The count of secondaries.
-
getSecondaries
public com.google.protobuf.ByteString getSecondaries(int index) the key list of all secondary for transactions that are using Async Commit.
repeated bytes secondaries = 12;- Specified by:
getSecondariesin interfaceStore.LockInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The secondaries at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Store.LockInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.LockInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.LockInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.LockInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.LockInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.LockInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Store.LockInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Store.LockInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Store.LockInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Store.LockInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Store.LockInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-