Package io.dingodb.store
Interface Store.TxnPessimisticLockResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Store.TxnPessimisticLockResponse,Store.TxnPessimisticLockResponse.Builder
- Enclosing class:
- Store
public static interface Store.TxnPessimisticLockResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetDocuments(int index) for document index region: When some key is locked but we cannot check locks of all keys.intfor document index region: When some key is locked but we cannot check locks of all keys.for document index region: When some key is locked but we cannot check locks of all keys.getDocumentsOrBuilder(int index) for document index region: When some key is locked but we cannot check locks of all keys.List<? extends Common.DocumentWithIdOrBuilder>for document index region: When some key is locked but we cannot check locks of all keys.getError()error codeerror codegetKvs(int index) The values is set if 'return_values' is true in the request and no error.intThe values is set if 'return_values' is true in the request and no error.The values is set if 'return_values' is true in the request and no error.getKvsOrBuilder(int index) The values is set if 'return_values' is true in the request and no error.List<? extends Common.KeyValueOrBuilder>The values is set if 'return_values' is true in the request and no error.response inforesponse infogetTxnResult(int index) if there are many keys can't be locked, there will be many txn_result, each txn_result is for one key the txn_result is one of the following: 1.intif there are many keys can't be locked, there will be many txn_result, each txn_result is for one key the txn_result is one of the following: 1.if there are many keys can't be locked, there will be many txn_result, each txn_result is for one key the txn_result is one of the following: 1.getTxnResultOrBuilder(int index) if there are many keys can't be locked, there will be many txn_result, each txn_result is for one key the txn_result is one of the following: 1.List<? extends Store.TxnResultInfoOrBuilder>if there are many keys can't be locked, there will be many txn_result, each txn_result is for one key the txn_result is one of the following: 1.getVector(int index) The values is set if 'return_values' is true in the request and no error.intThe values is set if 'return_values' is true in the request and no error.The values is set if 'return_values' is true in the request and no error.getVectorOrBuilder(int index) The values is set if 'return_values' is true in the request and no error.List<? extends Common.VectorWithIdOrBuilder>The values is set if 'return_values' is true in the request and no error.booleanhasError()error codebooleanresponse infoMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasResponseInfo
boolean hasResponseInfo()response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Returns:
- Whether the responseInfo field is set.
-
getResponseInfo
Common.ResponseInfo getResponseInfo()response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Returns:
- The responseInfo.
-
getResponseInfoOrBuilder
Common.ResponseInfoOrBuilder getResponseInfoOrBuilder()response info
.dingodb.pb.common.ResponseInfo response_info = 1; -
hasError
boolean hasError()error code
.dingodb.pb.error.Error error = 2;- Returns:
- Whether the error field is set.
-
getError
ErrorOuterClass.Error getError()error code
.dingodb.pb.error.Error error = 2;- Returns:
- The error.
-
getErrorOrBuilder
ErrorOuterClass.ErrorOrBuilder getErrorOrBuilder()error code
.dingodb.pb.error.Error error = 2; -
getTxnResultList
List<Store.TxnResultInfo> getTxnResultList()if there are many keys can't be locked, there will be many txn_result, each txn_result is for one key the txn_result is one of the following: 1. LockInfo: lock meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after for_update_ts 2.1 Optimistic: in optimistic transactions. 2.2 PessimisticRetry: a lock acquisition request waits for a lock and awakes, or meets a newer version of data, let Executor retry. 2.3 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.repeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
getTxnResult
if there are many keys can't be locked, there will be many txn_result, each txn_result is for one key the txn_result is one of the following: 1. LockInfo: lock meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after for_update_ts 2.1 Optimistic: in optimistic transactions. 2.2 PessimisticRetry: a lock acquisition request waits for a lock and awakes, or meets a newer version of data, let Executor retry. 2.3 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.repeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
getTxnResultCount
int getTxnResultCount()if there are many keys can't be locked, there will be many txn_result, each txn_result is for one key the txn_result is one of the following: 1. LockInfo: lock meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after for_update_ts 2.1 Optimistic: in optimistic transactions. 2.2 PessimisticRetry: a lock acquisition request waits for a lock and awakes, or meets a newer version of data, let Executor retry. 2.3 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.repeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
getTxnResultOrBuilderList
List<? extends Store.TxnResultInfoOrBuilder> getTxnResultOrBuilderList()if there are many keys can't be locked, there will be many txn_result, each txn_result is for one key the txn_result is one of the following: 1. LockInfo: lock meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after for_update_ts 2.1 Optimistic: in optimistic transactions. 2.2 PessimisticRetry: a lock acquisition request waits for a lock and awakes, or meets a newer version of data, let Executor retry. 2.3 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.repeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
getTxnResultOrBuilder
if there are many keys can't be locked, there will be many txn_result, each txn_result is for one key the txn_result is one of the following: 1. LockInfo: lock meet a lock and can't proceed, the lock is returned 2. WriteConflict: Write conflict with key which is already written after for_update_ts 2.1 Optimistic: in optimistic transactions. 2.2 PessimisticRetry: a lock acquisition request waits for a lock and awakes, or meets a newer version of data, let Executor retry. 2.3 SelfRolledBack: the transaction itself has been rolled back when it tries to prewrite.repeated .dingodb.pb.store.TxnResultInfo txn_result = 3; -
getKvsList
List<Common.KeyValue> getKvsList()The values is set if 'return_values' is true in the request and no error. for store table/index region:
repeated .dingodb.pb.common.KeyValue kvs = 4; -
getKvs
The values is set if 'return_values' is true in the request and no error. for store table/index region:
repeated .dingodb.pb.common.KeyValue kvs = 4; -
getKvsCount
int getKvsCount()The values is set if 'return_values' is true in the request and no error. for store table/index region:
repeated .dingodb.pb.common.KeyValue kvs = 4; -
getKvsOrBuilderList
List<? extends Common.KeyValueOrBuilder> getKvsOrBuilderList()The values is set if 'return_values' is true in the request and no error. for store table/index region:
repeated .dingodb.pb.common.KeyValue kvs = 4; -
getKvsOrBuilder
The values is set if 'return_values' is true in the request and no error. for store table/index region:
repeated .dingodb.pb.common.KeyValue kvs = 4; -
getVectorList
List<Common.VectorWithId> getVectorList()The values is set if 'return_values' is true in the request and no error. for vector index region:
repeated .dingodb.pb.common.VectorWithId vector = 5; -
getVector
The values is set if 'return_values' is true in the request and no error. for vector index region:
repeated .dingodb.pb.common.VectorWithId vector = 5; -
getVectorCount
int getVectorCount()The values is set if 'return_values' is true in the request and no error. for vector index region:
repeated .dingodb.pb.common.VectorWithId vector = 5; -
getVectorOrBuilderList
List<? extends Common.VectorWithIdOrBuilder> getVectorOrBuilderList()The values is set if 'return_values' is true in the request and no error. for vector index region:
repeated .dingodb.pb.common.VectorWithId vector = 5; -
getVectorOrBuilder
The values is set if 'return_values' is true in the request and no error. for vector index region:
repeated .dingodb.pb.common.VectorWithId vector = 5; -
getDocumentsList
List<Common.DocumentWithId> getDocumentsList()for document index region: When some key is locked but we cannot check locks of all keys. In this case, `documents` should be empty and the client should redo batch get all the keys after resolving the lock.
repeated .dingodb.pb.common.DocumentWithId documents = 6; -
getDocuments
for document index region: When some key is locked but we cannot check locks of all keys. In this case, `documents` should be empty and the client should redo batch get all the keys after resolving the lock.
repeated .dingodb.pb.common.DocumentWithId documents = 6; -
getDocumentsCount
int getDocumentsCount()for document index region: When some key is locked but we cannot check locks of all keys. In this case, `documents` should be empty and the client should redo batch get all the keys after resolving the lock.
repeated .dingodb.pb.common.DocumentWithId documents = 6; -
getDocumentsOrBuilderList
List<? extends Common.DocumentWithIdOrBuilder> getDocumentsOrBuilderList()for document index region: When some key is locked but we cannot check locks of all keys. In this case, `documents` should be empty and the client should redo batch get all the keys after resolving the lock.
repeated .dingodb.pb.common.DocumentWithId documents = 6; -
getDocumentsOrBuilder
for document index region: When some key is locked but we cannot check locks of all keys. In this case, `documents` should be empty and the client should redo batch get all the keys after resolving the lock.
repeated .dingodb.pb.common.DocumentWithId documents = 6;
-