Package io.dingodb.store
Class Store.TxnPrewriteRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteRequest.Builder>
io.dingodb.store.Store.TxnPrewriteRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Store.TxnPrewriteRequestOrBuilder,Cloneable
- Enclosing class:
- Store.TxnPrewriteRequest
public static final class Store.TxnPrewriteRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteRequest.Builder>
implements Store.TxnPrewriteRequestOrBuilder
Protobuf type
dingodb.pb.store.TxnPrewriteRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllForUpdateTsChecks(Iterable<? extends Store.TxnPrewriteRequest.ForUpdateTsCheck> values) fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.addAllLockExtraDatas(Iterable<? extends Store.TxnPrewriteRequest.LockExtraData> values) for both pessimistic and optimistic transaction the extra_data executor want to store in lockaddAllMutations(Iterable<? extends Store.Mutation> values) The data to be written to the database.addAllPessimisticChecks(Iterable<? extends Store.TxnPrewriteRequest.PessimisticCheck> values) for pessimistic transaction check if the keys is locked by pessimistic transactionaddAllPessimisticChecksValue(Iterable<Integer> values) for pessimistic transaction check if the keys is locked by pessimistic transactionaddAllSecondaries(Iterable<? extends com.google.protobuf.ByteString> values) repeated bytes secondaries = 15;addForUpdateTsChecks(int index, Store.TxnPrewriteRequest.ForUpdateTsCheck value) fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.addForUpdateTsChecks(int index, Store.TxnPrewriteRequest.ForUpdateTsCheck.Builder builderForValue) 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.addForUpdateTsChecks(Store.TxnPrewriteRequest.ForUpdateTsCheck.Builder builderForValue) 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.addForUpdateTsChecksBuilder(int index) fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.addLockExtraDatas(int index, Store.TxnPrewriteRequest.LockExtraData value) for both pessimistic and optimistic transaction the extra_data executor want to store in lockaddLockExtraDatas(int index, Store.TxnPrewriteRequest.LockExtraData.Builder builderForValue) 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 lockaddLockExtraDatas(Store.TxnPrewriteRequest.LockExtraData.Builder builderForValue) 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 lockaddLockExtraDatasBuilder(int index) for both pessimistic and optimistic transaction the extra_data executor want to store in lockaddMutations(int index, Store.Mutation value) The data to be written to the database.addMutations(int index, Store.Mutation.Builder builderForValue) The data to be written to the database.addMutations(Store.Mutation value) The data to be written to the database.addMutations(Store.Mutation.Builder builderForValue) The data to be written to the database.The data to be written to the database.addMutationsBuilder(int index) The data to be written to the database.for pessimistic transaction check if the keys is locked by pessimistic transactionaddPessimisticChecksValue(int value) for pessimistic transaction check if the keys is locked by pessimistic transactionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSecondaries(com.google.protobuf.ByteString value) repeated bytes secondaries = 15;build()clear().dingodb.pb.store.Context context = 2;clearField(com.google.protobuf.Descriptors.FieldDescriptor field) fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.for both pessimistic and optimistic transaction the extra_data executor want to store in lockthe lock's ttl is timestamp in milisecond.The max commit ts is reserved for limiting the commit ts of 1PC, which can be used to avoid inconsistency with schema change.If min_commit_ts > 0, this is a large transaction request, the final commit_ts will be inferred from `min_commit_ts`.The data to be written to the database.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) for pessimistic transaction check if the keys is locked by pessimistic transactionThe primary lock of the transaction is setup by client.dingodb.pb.common.RequestInfo request_info = 1;repeated bytes secondaries = 15;Identifies the transaction being written.When the transaction involves only one region, it's possible to commit the transaction directly with 1PC protocol.the number of keys involved in the transactionWhen async commit is enabled, `secondaries` should be set as the key list of all secondary locks if the request prewrites the primary lock.clone().dingodb.pb.store.Context context = 2;.dingodb.pb.store.Context context = 2;.dingodb.pb.store.Context context = 2;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetForUpdateTsChecks(int index) fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.getForUpdateTsChecksBuilder(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.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 lockgetLockExtraDatasBuilder(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 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.getMutationsBuilder(int index) The data to be written to the database.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;.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;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeContext(Store.Context value) .dingodb.pb.store.Context context = 2;mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) .dingodb.pb.common.RequestInfo request_info = 1;mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeForUpdateTsChecks(int index) fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.removeLockExtraDatas(int index) for both pessimistic and optimistic transaction the extra_data executor want to store in lockremoveMutations(int index) The data to be written to the database.setContext(Store.Context value) .dingodb.pb.store.Context context = 2;setContext(Store.Context.Builder builderForValue) .dingodb.pb.store.Context context = 2;setForUpdateTsChecks(int index, Store.TxnPrewriteRequest.ForUpdateTsCheck value) fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.setForUpdateTsChecks(int index, Store.TxnPrewriteRequest.ForUpdateTsCheck.Builder builderForValue) fo pessimistic transaction for_update_ts constriants that should be checked when prewriting a pessimistic transaction.setLockExtraDatas(int index, Store.TxnPrewriteRequest.LockExtraData value) for both pessimistic and optimistic transaction the extra_data executor want to store in locksetLockExtraDatas(int index, Store.TxnPrewriteRequest.LockExtraData.Builder builderForValue) for both pessimistic and optimistic transaction the extra_data executor want to store in locksetLockTtl(long value) the lock's ttl is timestamp in milisecond.setMaxCommitTs(long value) The max commit ts is reserved for limiting the commit ts of 1PC, which can be used to avoid inconsistency with schema change.setMinCommitTs(long value) If min_commit_ts > 0, this is a large transaction request, the final commit_ts will be inferred from `min_commit_ts`.setMutations(int index, Store.Mutation value) The data to be written to the database.setMutations(int index, Store.Mutation.Builder builderForValue) The data to be written to the database.setPessimisticChecks(int index, Store.TxnPrewriteRequest.PessimisticCheck value) for pessimistic transaction check if the keys is locked by pessimistic transactionsetPessimisticChecksValue(int index, int value) for pessimistic transaction check if the keys is locked by pessimistic transactionsetPrimaryLock(com.google.protobuf.ByteString value) The primary lock of the transaction is setup by clientsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRequestInfo(Common.RequestInfo value) .dingodb.pb.common.RequestInfo request_info = 1;setRequestInfo(Common.RequestInfo.Builder builderForValue) .dingodb.pb.common.RequestInfo request_info = 1;setSecondaries(int index, com.google.protobuf.ByteString value) repeated bytes secondaries = 15;setStartTs(long value) Identifies the transaction being written.setTryOnePc(boolean value) When the transaction involves only one region, it's possible to commit the transaction directly with 1PC protocol.setTxnSize(long value) the number of keys involved in the transactionsetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUseAsyncCommit(boolean value) When async commit is enabled, `secondaries` should be set as the key list of all secondary locks if the request prewrites the primary lock.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.TxnPrewriteRequest.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.TxnPrewriteRequest.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.TxnPrewriteRequest.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.TxnPrewriteRequest.Builder>
-
setField
public Store.TxnPrewriteRequest.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.TxnPrewriteRequest.Builder>
-
clearField
public Store.TxnPrewriteRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteRequest.Builder>
-
clearOneof
public Store.TxnPrewriteRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteRequest.Builder>
-
setRepeatedField
public Store.TxnPrewriteRequest.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.TxnPrewriteRequest.Builder>
-
addRepeatedField
public Store.TxnPrewriteRequest.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.TxnPrewriteRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Store.TxnPrewriteRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteRequest.Builder>
-
mergeFrom
public Store.TxnPrewriteRequest.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.TxnPrewriteRequest.Builder>- Throws:
IOException
-
hasRequestInfo
public boolean hasRequestInfo().dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
hasRequestInfoin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- Whether the requestInfo field is set.
-
getRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
getRequestInfoin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- The requestInfo.
-
setRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1; -
setRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1; -
mergeRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1; -
clearRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1; -
getRequestInfoBuilder
.dingodb.pb.common.RequestInfo request_info = 1; -
getRequestInfoOrBuilder
.dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
getRequestInfoOrBuilderin interfaceStore.TxnPrewriteRequestOrBuilder
-
hasContext
public boolean hasContext().dingodb.pb.store.Context context = 2;- Specified by:
hasContextin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- Whether the context field is set.
-
getContext
.dingodb.pb.store.Context context = 2;- Specified by:
getContextin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- The context.
-
setContext
.dingodb.pb.store.Context context = 2; -
setContext
.dingodb.pb.store.Context context = 2; -
mergeContext
.dingodb.pb.store.Context context = 2; -
clearContext
.dingodb.pb.store.Context context = 2; -
getContextBuilder
.dingodb.pb.store.Context context = 2; -
getContextOrBuilder
.dingodb.pb.store.Context context = 2;- Specified by:
getContextOrBuilderin interfaceStore.TxnPrewriteRequestOrBuilder
-
getMutationsList
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3;- Specified by:
getMutationsListin interfaceStore.TxnPrewriteRequestOrBuilder
-
getMutationsCount
public int getMutationsCount()The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3;- Specified by:
getMutationsCountin interfaceStore.TxnPrewriteRequestOrBuilder
-
getMutations
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3;- Specified by:
getMutationsin interfaceStore.TxnPrewriteRequestOrBuilder
-
setMutations
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
setMutations
public Store.TxnPrewriteRequest.Builder setMutations(int index, Store.Mutation.Builder builderForValue) The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
addMutations
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
addMutations
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
addMutations
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
addMutations
public Store.TxnPrewriteRequest.Builder addMutations(int index, Store.Mutation.Builder builderForValue) The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
addAllMutations
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
clearMutations
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
removeMutations
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getMutationsBuilder
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;- Specified by:
getMutationsOrBuilderin interfaceStore.TxnPrewriteRequestOrBuilder
-
getMutationsOrBuilderList
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3;- Specified by:
getMutationsOrBuilderListin interfaceStore.TxnPrewriteRequestOrBuilder
-
addMutationsBuilder
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
addMutationsBuilder
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getMutationsBuilderList
The data to be written to the database.
repeated .dingodb.pb.store.Mutation mutations = 3; -
getPrimaryLock
public com.google.protobuf.ByteString getPrimaryLock()The primary lock of the transaction is setup by client
bytes primary_lock = 4;- Specified by:
getPrimaryLockin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- The primaryLock.
-
setPrimaryLock
The primary lock of the transaction is setup by client
bytes primary_lock = 4;- Parameters:
value- The primaryLock to set.- Returns:
- This builder for chaining.
-
clearPrimaryLock
The primary lock of the transaction is setup by client
bytes primary_lock = 4;- Returns:
- This builder for chaining.
-
getStartTs
public long getStartTs()Identifies the transaction being written.
int64 start_ts = 5;- Specified by:
getStartTsin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- The startTs.
-
setStartTs
Identifies the transaction being written.
int64 start_ts = 5;- Parameters:
value- The startTs to set.- Returns:
- This builder for chaining.
-
clearStartTs
Identifies the transaction being written.
int64 start_ts = 5;- Returns:
- This builder for chaining.
-
getLockTtl
public long getLockTtl()the lock's ttl is timestamp in milisecond.
int64 lock_ttl = 6;- Specified by:
getLockTtlin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- The lockTtl.
-
setLockTtl
the lock's ttl is timestamp in milisecond.
int64 lock_ttl = 6;- Parameters:
value- The lockTtl to set.- Returns:
- This builder for chaining.
-
clearLockTtl
the lock's ttl is timestamp in milisecond.
int64 lock_ttl = 6;- Returns:
- This builder for chaining.
-
getTxnSize
public long getTxnSize()the number of keys involved in the transaction
int64 txn_size = 7;- Specified by:
getTxnSizein interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- The txnSize.
-
setTxnSize
the number of keys involved in the transaction
int64 txn_size = 7;- Parameters:
value- The txnSize to set.- Returns:
- This builder for chaining.
-
clearTxnSize
the number of keys involved in the transaction
int64 txn_size = 7;- Returns:
- This builder for chaining.
-
getTryOnePc
public 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;- Specified by:
getTryOnePcin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- The tryOnePc.
-
setTryOnePc
When the transaction involves only one region, it's possible to commit the transaction directly with 1PC protocol.
bool try_one_pc = 8;- Parameters:
value- The tryOnePc to set.- Returns:
- This builder for chaining.
-
clearTryOnePc
When the transaction involves only one region, it's possible to commit the transaction directly with 1PC protocol.
bool try_one_pc = 8;- Returns:
- This builder for chaining.
-
getMaxCommitTs
public 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;- Specified by:
getMaxCommitTsin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- The maxCommitTs.
-
setMaxCommitTs
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;- Parameters:
value- The maxCommitTs to set.- Returns:
- This builder for chaining.
-
clearMaxCommitTs
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:
- This builder for chaining.
-
getPessimisticChecksList
for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Specified by:
getPessimisticChecksListin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- A list containing the pessimisticChecks.
-
getPessimisticChecksCount
public int getPessimisticChecksCount()for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Specified by:
getPessimisticChecksCountin interfaceStore.TxnPrewriteRequestOrBuilder- 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;- Specified by:
getPessimisticChecksin interfaceStore.TxnPrewriteRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The pessimisticChecks at the given index.
-
setPessimisticChecks
public Store.TxnPrewriteRequest.Builder setPessimisticChecks(int index, Store.TxnPrewriteRequest.PessimisticCheck value) 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 to set the value at.value- The pessimisticChecks to set.- Returns:
- This builder for chaining.
-
addPessimisticChecks
public Store.TxnPrewriteRequest.Builder addPessimisticChecks(Store.TxnPrewriteRequest.PessimisticCheck value) for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Parameters:
value- The pessimisticChecks to add.- Returns:
- This builder for chaining.
-
addAllPessimisticChecks
public Store.TxnPrewriteRequest.Builder addAllPessimisticChecks(Iterable<? extends Store.TxnPrewriteRequest.PessimisticCheck> values) for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Parameters:
values- The pessimisticChecks to add.- Returns:
- This builder for chaining.
-
clearPessimisticChecks
for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Returns:
- This builder for chaining.
-
getPessimisticChecksValueList
for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Specified by:
getPessimisticChecksValueListin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for pessimisticChecks.
-
getPessimisticChecksValue
public 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;- Specified by:
getPessimisticChecksValuein interfaceStore.TxnPrewriteRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of pessimisticChecks at the given index.
-
setPessimisticChecksValue
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 to set the value at.value- The enum numeric value on the wire for pessimisticChecks to set.- Returns:
- This builder for chaining.
-
addPessimisticChecksValue
for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Parameters:
value- The enum numeric value on the wire for pessimisticChecks to add.- Returns:
- This builder for chaining.
-
addAllPessimisticChecksValue
for pessimistic transaction check if the keys is locked by pessimistic transaction
repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;- Parameters:
values- The enum numeric values on the wire for pessimisticChecks to add.- Returns:
- This builder for chaining.
-
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;- Specified by:
getForUpdateTsChecksListin interfaceStore.TxnPrewriteRequestOrBuilder
-
getForUpdateTsChecksCount
public 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;- Specified by:
getForUpdateTsChecksCountin interfaceStore.TxnPrewriteRequestOrBuilder
-
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;- Specified by:
getForUpdateTsChecksin interfaceStore.TxnPrewriteRequestOrBuilder
-
setForUpdateTsChecks
public Store.TxnPrewriteRequest.Builder setForUpdateTsChecks(int index, Store.TxnPrewriteRequest.ForUpdateTsCheck value) 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; -
setForUpdateTsChecks
public Store.TxnPrewriteRequest.Builder setForUpdateTsChecks(int index, Store.TxnPrewriteRequest.ForUpdateTsCheck.Builder builderForValue) 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; -
addForUpdateTsChecks
public Store.TxnPrewriteRequest.Builder addForUpdateTsChecks(Store.TxnPrewriteRequest.ForUpdateTsCheck value) 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; -
addForUpdateTsChecks
public Store.TxnPrewriteRequest.Builder addForUpdateTsChecks(int index, Store.TxnPrewriteRequest.ForUpdateTsCheck value) 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; -
addForUpdateTsChecks
public Store.TxnPrewriteRequest.Builder addForUpdateTsChecks(Store.TxnPrewriteRequest.ForUpdateTsCheck.Builder builderForValue) 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; -
addForUpdateTsChecks
public Store.TxnPrewriteRequest.Builder addForUpdateTsChecks(int index, Store.TxnPrewriteRequest.ForUpdateTsCheck.Builder builderForValue) 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; -
addAllForUpdateTsChecks
public Store.TxnPrewriteRequest.Builder addAllForUpdateTsChecks(Iterable<? extends Store.TxnPrewriteRequest.ForUpdateTsCheck> values) 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; -
clearForUpdateTsChecks
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; -
removeForUpdateTsChecks
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; -
getForUpdateTsChecksBuilder
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;- Specified by:
getForUpdateTsChecksOrBuilderin interfaceStore.TxnPrewriteRequestOrBuilder
-
getForUpdateTsChecksOrBuilderList
public 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;- Specified by:
getForUpdateTsChecksOrBuilderListin interfaceStore.TxnPrewriteRequestOrBuilder
-
addForUpdateTsChecksBuilder
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; -
addForUpdateTsChecksBuilder
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; -
getForUpdateTsChecksBuilderList
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
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;- Specified by:
getLockExtraDatasListin interfaceStore.TxnPrewriteRequestOrBuilder
-
getLockExtraDatasCount
public 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;- Specified by:
getLockExtraDatasCountin interfaceStore.TxnPrewriteRequestOrBuilder
-
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;- Specified by:
getLockExtraDatasin interfaceStore.TxnPrewriteRequestOrBuilder
-
setLockExtraDatas
public Store.TxnPrewriteRequest.Builder setLockExtraDatas(int index, Store.TxnPrewriteRequest.LockExtraData value) 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; -
setLockExtraDatas
public Store.TxnPrewriteRequest.Builder setLockExtraDatas(int index, Store.TxnPrewriteRequest.LockExtraData.Builder builderForValue) 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; -
addLockExtraDatas
public Store.TxnPrewriteRequest.Builder addLockExtraDatas(Store.TxnPrewriteRequest.LockExtraData value) 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; -
addLockExtraDatas
public Store.TxnPrewriteRequest.Builder addLockExtraDatas(int index, Store.TxnPrewriteRequest.LockExtraData value) 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; -
addLockExtraDatas
public Store.TxnPrewriteRequest.Builder addLockExtraDatas(Store.TxnPrewriteRequest.LockExtraData.Builder builderForValue) 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; -
addLockExtraDatas
public Store.TxnPrewriteRequest.Builder addLockExtraDatas(int index, Store.TxnPrewriteRequest.LockExtraData.Builder builderForValue) 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; -
addAllLockExtraDatas
public Store.TxnPrewriteRequest.Builder addAllLockExtraDatas(Iterable<? extends Store.TxnPrewriteRequest.LockExtraData> values) 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; -
clearLockExtraDatas
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; -
removeLockExtraDatas
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; -
getLockExtraDatasBuilder
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;- Specified by:
getLockExtraDatasOrBuilderin interfaceStore.TxnPrewriteRequestOrBuilder
-
getLockExtraDatasOrBuilderList
public 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;- Specified by:
getLockExtraDatasOrBuilderListin interfaceStore.TxnPrewriteRequestOrBuilder
-
addLockExtraDatasBuilder
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; -
addLockExtraDatasBuilder
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; -
getLockExtraDatasBuilderList
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
public 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;- Specified by:
getMinCommitTsin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- The minCommitTs.
-
setMinCommitTs
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;- Parameters:
value- The minCommitTs to set.- Returns:
- This builder for chaining.
-
clearMinCommitTs
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:
- This builder for chaining.
-
getUseAsyncCommit
public 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;- Specified by:
getUseAsyncCommitin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- The useAsyncCommit.
-
setUseAsyncCommit
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;- Parameters:
value- The useAsyncCommit to set.- Returns:
- This builder for chaining.
-
clearUseAsyncCommit
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:
- This builder for chaining.
-
getSecondariesList
repeated bytes secondaries = 15;- Specified by:
getSecondariesListin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- A list containing the secondaries.
-
getSecondariesCount
public int getSecondariesCount()repeated bytes secondaries = 15;- Specified by:
getSecondariesCountin interfaceStore.TxnPrewriteRequestOrBuilder- Returns:
- The count of secondaries.
-
getSecondaries
public com.google.protobuf.ByteString getSecondaries(int index) repeated bytes secondaries = 15;- Specified by:
getSecondariesin interfaceStore.TxnPrewriteRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The secondaries at the given index.
-
setSecondaries
public Store.TxnPrewriteRequest.Builder setSecondaries(int index, com.google.protobuf.ByteString value) repeated bytes secondaries = 15;- Parameters:
index- The index to set the value at.value- The secondaries to set.- Returns:
- This builder for chaining.
-
addSecondaries
repeated bytes secondaries = 15;- Parameters:
value- The secondaries to add.- Returns:
- This builder for chaining.
-
addAllSecondaries
public Store.TxnPrewriteRequest.Builder addAllSecondaries(Iterable<? extends com.google.protobuf.ByteString> values) repeated bytes secondaries = 15;- Parameters:
values- The secondaries to add.- Returns:
- This builder for chaining.
-
clearSecondaries
repeated bytes secondaries = 15;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Store.TxnPrewriteRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteRequest.Builder>
-
mergeUnknownFields
public final Store.TxnPrewriteRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteRequest.Builder>
-