Package io.dingodb.store
Class Store.TxnPrewriteResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteResponse.Builder>
io.dingodb.store.Store.TxnPrewriteResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Store.TxnPrewriteResponseOrBuilder,Cloneable
- Enclosing class:
- Store.TxnPrewriteResponse
public static final class Store.TxnPrewriteResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteResponse.Builder>
implements Store.TxnPrewriteResponseOrBuilder
Protobuf type
dingodb.pb.store.TxnPrewriteResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllKeysAlreadyExist(Iterable<? extends Store.AlreadyExist> values) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedaddAllTxnResult(Iterable<? extends Store.TxnResultInfo> values) for prewrite, txn_result will be one of the following: 1.addKeysAlreadyExist(int index, Store.AlreadyExist value) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedaddKeysAlreadyExist(int index, Store.AlreadyExist.Builder builderForValue) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedif there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedaddKeysAlreadyExist(Store.AlreadyExist.Builder builderForValue) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedif there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedaddKeysAlreadyExistBuilder(int index) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTxnResult(int index, Store.TxnResultInfo value) for prewrite, txn_result will be one of the following: 1.addTxnResult(int index, Store.TxnResultInfo.Builder builderForValue) for prewrite, txn_result will be one of the following: 1.addTxnResult(Store.TxnResultInfo value) for prewrite, txn_result will be one of the following: 1.addTxnResult(Store.TxnResultInfo.Builder builderForValue) for prewrite, txn_result will be one of the following: 1.for prewrite, txn_result will be one of the following: 1.addTxnResultBuilder(int index) for prewrite, txn_result will be one of the following: 1.build()clear()error codeclearField(com.google.protobuf.Descriptors.FieldDescriptor field) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned0 if the min_commit_ts is not ready or any other reason that async commit cannot proceed.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) When the transaction is successfully committed with 1PC protocol, this field will be set to the commit ts of the transaction.response infofor prewrite, txn_result will be one of the following: 1.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetError()error codeerror codeerror codegetKeysAlreadyExist(int index) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedgetKeysAlreadyExistBuilder(int index) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedif there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedintif there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedif there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedgetKeysAlreadyExistOrBuilder(int index) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedList<? extends Store.AlreadyExistOrBuilder>if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedlong0 if the min_commit_ts is not ready or any other reason that async commit cannot proceed.longWhen the transaction is successfully committed with 1PC protocol, this field will be set to the commit ts of the transaction.response inforesponse inforesponse infogetTxnResult(int index) for prewrite, txn_result will be one of the following: 1.getTxnResultBuilder(int index) for prewrite, txn_result will be one of the following: 1.for prewrite, txn_result will be one of the following: 1.intfor prewrite, txn_result will be one of the following: 1.for prewrite, txn_result will be one of the following: 1.getTxnResultOrBuilder(int index) for prewrite, txn_result will be one of the following: 1.List<? extends Store.TxnResultInfoOrBuilder>for prewrite, txn_result will be one of the following: 1.booleanhasError()error codebooleanresponse infoprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeError(ErrorOuterClass.Error value) error codemergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) response infomergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeKeysAlreadyExist(int index) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedremoveTxnResult(int index) for prewrite, txn_result will be one of the following: 1.setError(ErrorOuterClass.Error value) error codesetError(ErrorOuterClass.Error.Builder builderForValue) error codesetKeysAlreadyExist(int index, Store.AlreadyExist value) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedsetKeysAlreadyExist(int index, Store.AlreadyExist.Builder builderForValue) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returnedsetMinCommitTs(long value) 0 if the min_commit_ts is not ready or any other reason that async commit cannot proceed.setOnePcCommitTs(long value) When the transaction is successfully committed with 1PC protocol, this field will be set to the commit ts of the transaction.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) response infosetResponseInfo(Common.ResponseInfo.Builder builderForValue) response infosetTxnResult(int index, Store.TxnResultInfo value) for prewrite, txn_result will be one of the following: 1.setTxnResult(int index, Store.TxnResultInfo.Builder builderForValue) for prewrite, txn_result will be one of the following: 1.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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.TxnPrewriteResponse.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.TxnPrewriteResponse.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.TxnPrewriteResponse.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.TxnPrewriteResponse.Builder>
-
setField
public Store.TxnPrewriteResponse.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.TxnPrewriteResponse.Builder>
-
clearField
public Store.TxnPrewriteResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteResponse.Builder>
-
clearOneof
public Store.TxnPrewriteResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteResponse.Builder>
-
setRepeatedField
public Store.TxnPrewriteResponse.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.TxnPrewriteResponse.Builder>
-
addRepeatedField
public Store.TxnPrewriteResponse.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.TxnPrewriteResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Store.TxnPrewriteResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteResponse.Builder>
-
mergeFrom
public Store.TxnPrewriteResponse.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.TxnPrewriteResponse.Builder>- Throws:
IOException
-
hasResponseInfo
public boolean hasResponseInfo()response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
hasResponseInfoin interfaceStore.TxnPrewriteResponseOrBuilder- Returns:
- Whether the responseInfo field is set.
-
getResponseInfo
response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
getResponseInfoin interfaceStore.TxnPrewriteResponseOrBuilder- Returns:
- The responseInfo.
-
setResponseInfo
response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
setResponseInfo
public Store.TxnPrewriteResponse.Builder setResponseInfo(Common.ResponseInfo.Builder builderForValue) response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
mergeResponseInfo
response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
clearResponseInfo
response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
getResponseInfoBuilder
response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
getResponseInfoOrBuilder
response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
getResponseInfoOrBuilderin interfaceStore.TxnPrewriteResponseOrBuilder
-
hasError
public boolean hasError()error code
.dingodb.pb.error.Error error = 2;- Specified by:
hasErrorin interfaceStore.TxnPrewriteResponseOrBuilder- Returns:
- Whether the error field is set.
-
getError
error code
.dingodb.pb.error.Error error = 2;- Specified by:
getErrorin interfaceStore.TxnPrewriteResponseOrBuilder- Returns:
- The error.
-
setError
error code
.dingodb.pb.error.Error error = 2; -
setError
error code
.dingodb.pb.error.Error error = 2; -
mergeError
error code
.dingodb.pb.error.Error error = 2; -
clearError
error code
.dingodb.pb.error.Error error = 2; -
getErrorBuilder
error code
.dingodb.pb.error.Error error = 2; -
getErrorOrBuilder
error code
.dingodb.pb.error.Error error = 2;- Specified by:
getErrorOrBuilderin interfaceStore.TxnPrewriteResponseOrBuilder
-
getTxnResultList
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3;- Specified by:
getTxnResultListin interfaceStore.TxnPrewriteResponseOrBuilder
-
getTxnResultCount
public int getTxnResultCount()for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3;- Specified by:
getTxnResultCountin interfaceStore.TxnPrewriteResponseOrBuilder
-
getTxnResult
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3;- Specified by:
getTxnResultin interfaceStore.TxnPrewriteResponseOrBuilder
-
setTxnResult
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
setTxnResult
public Store.TxnPrewriteResponse.Builder setTxnResult(int index, Store.TxnResultInfo.Builder builderForValue) for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
addTxnResult
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
addTxnResult
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
addTxnResult
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
addTxnResult
public Store.TxnPrewriteResponse.Builder addTxnResult(int index, Store.TxnResultInfo.Builder builderForValue) for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
addAllTxnResult
public Store.TxnPrewriteResponse.Builder addAllTxnResult(Iterable<? extends Store.TxnResultInfo> values) for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
clearTxnResult
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
removeTxnResult
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
getTxnResultBuilder
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
getTxnResultOrBuilder
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3;- Specified by:
getTxnResultOrBuilderin interfaceStore.TxnPrewriteResponseOrBuilder
-
getTxnResultOrBuilderList
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3;- Specified by:
getTxnResultOrBuilderListin interfaceStore.TxnPrewriteResponseOrBuilder
-
addTxnResultBuilder
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
addTxnResultBuilder
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
getTxnResultBuilderList
for prewrite, txn_result will be one of the following: 1. LockInfo: prewrite meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after start_ts 2.1 Optimistic: in optimistic transactions. 2.2 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite. 3. otherwise, txn_result is empty for success prewrite, txn_result is empty for failure prewrite, txn_result is not empty if there is a WriteConflict in txn_result, client should backoff or cleanup the lock then retryrepeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
getKeysAlreadyExistList
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;- Specified by:
getKeysAlreadyExistListin interfaceStore.TxnPrewriteResponseOrBuilder
-
getKeysAlreadyExistCount
public int getKeysAlreadyExistCount()if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;- Specified by:
getKeysAlreadyExistCountin interfaceStore.TxnPrewriteResponseOrBuilder
-
getKeysAlreadyExist
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;- Specified by:
getKeysAlreadyExistin interfaceStore.TxnPrewriteResponseOrBuilder
-
setKeysAlreadyExist
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
setKeysAlreadyExist
public Store.TxnPrewriteResponse.Builder setKeysAlreadyExist(int index, Store.AlreadyExist.Builder builderForValue) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
addKeysAlreadyExist
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
addKeysAlreadyExist
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
addKeysAlreadyExist
public Store.TxnPrewriteResponse.Builder addKeysAlreadyExist(Store.AlreadyExist.Builder builderForValue) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
addKeysAlreadyExist
public Store.TxnPrewriteResponse.Builder addKeysAlreadyExist(int index, Store.AlreadyExist.Builder builderForValue) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
addAllKeysAlreadyExist
public Store.TxnPrewriteResponse.Builder addAllKeysAlreadyExist(Iterable<? extends Store.AlreadyExist> values) if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
clearKeysAlreadyExist
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
removeKeysAlreadyExist
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
getKeysAlreadyExistBuilder
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
getKeysAlreadyExistOrBuilder
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;- Specified by:
getKeysAlreadyExistOrBuilderin interfaceStore.TxnPrewriteResponseOrBuilder
-
getKeysAlreadyExistOrBuilderList
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4;- Specified by:
getKeysAlreadyExistOrBuilderListin interfaceStore.TxnPrewriteResponseOrBuilder
-
addKeysAlreadyExistBuilder
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
addKeysAlreadyExistBuilder
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
getKeysAlreadyExistBuilderList
if there is PutIfAbsent in mutation, and if there is key conflict, the conflict key will be returned
repeated .dingodb.pb.store.AlreadyExist keys_already_exist = 4; -
getOnePcCommitTs
public long getOnePcCommitTs()When the transaction is successfully committed with 1PC protocol, this field will be set to the commit ts of the transaction. Otherwise, if dingo-store failed to commit it with 1PC or the transaction is not 1PC, the value will be 0.
int64 one_pc_commit_ts = 5;- Specified by:
getOnePcCommitTsin interfaceStore.TxnPrewriteResponseOrBuilder- Returns:
- The onePcCommitTs.
-
setOnePcCommitTs
When the transaction is successfully committed with 1PC protocol, this field will be set to the commit ts of the transaction. Otherwise, if dingo-store failed to commit it with 1PC or the transaction is not 1PC, the value will be 0.
int64 one_pc_commit_ts = 5;- Parameters:
value- The onePcCommitTs to set.- Returns:
- This builder for chaining.
-
clearOnePcCommitTs
When the transaction is successfully committed with 1PC protocol, this field will be set to the commit ts of the transaction. Otherwise, if dingo-store failed to commit it with 1PC or the transaction is not 1PC, the value will be 0.
int64 one_pc_commit_ts = 5;- Returns:
- This builder for chaining.
-
getMinCommitTs
public long getMinCommitTs()0 if the min_commit_ts is not ready or any other reason that async commit cannot proceed. The client can then fallback to normal way to continue committing the transaction if prewrite are all finished.
uint64 min_commit_ts = 6;- Specified by:
getMinCommitTsin interfaceStore.TxnPrewriteResponseOrBuilder- Returns:
- The minCommitTs.
-
setMinCommitTs
0 if the min_commit_ts is not ready or any other reason that async commit cannot proceed. The client can then fallback to normal way to continue committing the transaction if prewrite are all finished.
uint64 min_commit_ts = 6;- Parameters:
value- The minCommitTs to set.- Returns:
- This builder for chaining.
-
clearMinCommitTs
0 if the min_commit_ts is not ready or any other reason that async commit cannot proceed. The client can then fallback to normal way to continue committing the transaction if prewrite are all finished.
uint64 min_commit_ts = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Store.TxnPrewriteResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteResponse.Builder>
-
mergeUnknownFields
public final Store.TxnPrewriteResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.TxnPrewriteResponse.Builder>
-