Package io.dingodb.store
Class Store.LockInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
io.dingodb.store.Store.LockInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Store.LockInfoOrBuilder,Cloneable
- Enclosing class:
- Store.LockInfo
public static final class Store.LockInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
implements Store.LockInfoOrBuilder
Protobuf type
dingodb.pb.store.LockInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllSecondaries(Iterable<? extends com.google.protobuf.ByteString> values) the key list of all secondary for transactions that are using Async Commit.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSecondaries(com.google.protobuf.ByteString value) the key list of all secondary for transactions that are using Async Commit.build()clear()write_info.short_valueclearField(com.google.protobuf.Descriptors.FieldDescriptor field) the for_update_ts of the pessimistic lockclearKey()the key of the lockthe start_ts of the transactionthe lock ttl timestamp in milisecondthe type of the lock, it can be put, delete, lockthe min_commit_ts of the transactionclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) the primary lock of the transactionthe key list of all secondary for transactions that are using Async Commit.the short value will persist to lock_info, and do not write data, commit will set it tothe number of keys involved in the transactionbool use_async_commit = 11;clone()static final com.google.protobuf.Descriptors.Descriptorcom.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.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;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Store.LockInfo other) final Store.LockInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setExtraData(com.google.protobuf.ByteString value) write_info.short_valuesetForUpdateTs(long value) the for_update_ts of the pessimistic locksetKey(com.google.protobuf.ByteString value) the key of the locksetLockTs(long value) the start_ts of the transactionsetLockTtl(long value) the lock ttl timestamp in milisecondsetLockType(Store.Op value) the type of the lock, it can be put, delete, locksetLockTypeValue(int value) the type of the lock, it can be put, delete, locksetMinCommitTs(long value) the min_commit_ts of the transactionsetPrimaryLock(com.google.protobuf.ByteString value) the primary lock of the transactionsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSecondaries(int index, com.google.protobuf.ByteString value) the key list of all secondary for transactions that are using Async Commit.setShortValue(com.google.protobuf.ByteString value) the short value will persist to lock_info, and do not write data, commit will set it tosetTxnSize(long value) the number of keys involved in the transactionfinal Store.LockInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUseAsyncCommit(boolean value) bool use_async_commit = 11;Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<Store.LockInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
-
setField
public Store.LockInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
-
setRepeatedField
public Store.LockInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
-
addRepeatedField
public Store.LockInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Store.LockInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
-
mergeFrom
public Store.LockInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Store.LockInfo.Builder>- Throws:
IOException
-
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.
-
setPrimaryLock
the primary lock of the transaction
bytes primary_lock = 1;- Parameters:
value- The primaryLock to set.- Returns:
- This builder for chaining.
-
clearPrimaryLock
the primary lock of the transaction
bytes primary_lock = 1;- Returns:
- This builder for chaining.
-
getKey
public com.google.protobuf.ByteString getKey()the key of the lock
bytes key = 2;- Specified by:
getKeyin interfaceStore.LockInfoOrBuilder- Returns:
- The key.
-
setKey
the key of the lock
bytes key = 2;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
the key of the lock
bytes key = 2;- Returns:
- This builder for chaining.
-
getLockTs
public long getLockTs()the start_ts of the transaction
int64 lock_ts = 3;- Specified by:
getLockTsin interfaceStore.LockInfoOrBuilder- Returns:
- The lockTs.
-
setLockTs
the start_ts of the transaction
int64 lock_ts = 3;- Parameters:
value- The lockTs to set.- Returns:
- This builder for chaining.
-
clearLockTs
the start_ts of the transaction
int64 lock_ts = 3;- Returns:
- This builder for chaining.
-
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.
-
setForUpdateTs
the for_update_ts of the pessimistic lock
int64 for_update_ts = 4;- Parameters:
value- The forUpdateTs to set.- Returns:
- This builder for chaining.
-
clearForUpdateTs
the for_update_ts of the pessimistic lock
int64 for_update_ts = 4;- Returns:
- This builder for chaining.
-
getLockTtl
public long getLockTtl()the lock ttl timestamp in milisecond
int64 lock_ttl = 5;- Specified by:
getLockTtlin interfaceStore.LockInfoOrBuilder- Returns:
- The lockTtl.
-
setLockTtl
the lock ttl timestamp in milisecond
int64 lock_ttl = 5;- Parameters:
value- The lockTtl to set.- Returns:
- This builder for chaining.
-
clearLockTtl
the lock ttl timestamp in milisecond
int64 lock_ttl = 5;- Returns:
- This builder for chaining.
-
getTxnSize
public long getTxnSize()the number of keys involved in the transaction
int64 txn_size = 6;- Specified by:
getTxnSizein interfaceStore.LockInfoOrBuilder- Returns:
- The txnSize.
-
setTxnSize
the number of keys involved in the transaction
int64 txn_size = 6;- Parameters:
value- The txnSize to set.- Returns:
- This builder for chaining.
-
clearTxnSize
the number of keys involved in the transaction
int64 txn_size = 6;- Returns:
- This builder for chaining.
-
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.
-
setLockTypeValue
the type of the lock, it can be put, delete, lock
.dingodb.pb.store.Op lock_type = 7;- Parameters:
value- The enum numeric value on the wire for lockType to set.- Returns:
- This builder for chaining.
-
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.
-
setLockType
the type of the lock, it can be put, delete, lock
.dingodb.pb.store.Op lock_type = 7;- Parameters:
value- The lockType to set.- Returns:
- This builder for chaining.
-
clearLockType
the type of the lock, it can be put, delete, lock
.dingodb.pb.store.Op lock_type = 7;- Returns:
- This builder for chaining.
-
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.
-
setShortValue
the short value will persist to lock_info, and do not write data, commit will set it to
bytes short_value = 8;- Parameters:
value- The shortValue to set.- Returns:
- This builder for chaining.
-
clearShortValue
the short value will persist to lock_info, and do not write data, commit will set it to
bytes short_value = 8;- Returns:
- This builder for chaining.
-
getExtraData
public com.google.protobuf.ByteString getExtraData()write_info.short_value
bytes extra_data = 9;- Specified by:
getExtraDatain interfaceStore.LockInfoOrBuilder- Returns:
- The extraData.
-
setExtraData
write_info.short_value
bytes extra_data = 9;- Parameters:
value- The extraData to set.- Returns:
- This builder for chaining.
-
clearExtraData
write_info.short_value
bytes extra_data = 9;- Returns:
- This builder for chaining.
-
getMinCommitTs
public long getMinCommitTs()the min_commit_ts of the transaction
int64 min_commit_ts = 10;- Specified by:
getMinCommitTsin interfaceStore.LockInfoOrBuilder- Returns:
- The minCommitTs.
-
setMinCommitTs
the min_commit_ts of the transaction
int64 min_commit_ts = 10;- Parameters:
value- The minCommitTs to set.- Returns:
- This builder for chaining.
-
clearMinCommitTs
the min_commit_ts of the transaction
int64 min_commit_ts = 10;- Returns:
- This builder for chaining.
-
getUseAsyncCommit
public boolean getUseAsyncCommit()bool use_async_commit = 11;- Specified by:
getUseAsyncCommitin interfaceStore.LockInfoOrBuilder- Returns:
- The useAsyncCommit.
-
setUseAsyncCommit
bool use_async_commit = 11;- Parameters:
value- The useAsyncCommit to set.- Returns:
- This builder for chaining.
-
clearUseAsyncCommit
bool use_async_commit = 11;- Returns:
- This builder for chaining.
-
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.
-
setSecondaries
the key list of all secondary for transactions that are using Async Commit.
repeated bytes secondaries = 12;- Parameters:
index- The index to set the value at.value- The secondaries to set.- Returns:
- This builder for chaining.
-
addSecondaries
the key list of all secondary for transactions that are using Async Commit.
repeated bytes secondaries = 12;- Parameters:
value- The secondaries to add.- Returns:
- This builder for chaining.
-
addAllSecondaries
public Store.LockInfo.Builder addAllSecondaries(Iterable<? extends com.google.protobuf.ByteString> values) the key list of all secondary for transactions that are using Async Commit.
repeated bytes secondaries = 12;- Parameters:
values- The secondaries to add.- Returns:
- This builder for chaining.
-
clearSecondaries
the key list of all secondary for transactions that are using Async Commit.
repeated bytes secondaries = 12;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Store.LockInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
-
mergeUnknownFields
public final Store.LockInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.LockInfo.Builder>
-