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 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

       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

      Store.TxnResultInfo getTxnResult(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. 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

      Store.TxnResultInfoOrBuilder 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. 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

      Common.KeyValue getKvs(int index)
       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

      Common.KeyValueOrBuilder getKvsOrBuilder(int index)
       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

      Common.VectorWithId getVector(int index)
       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

      Common.VectorWithIdOrBuilder getVectorOrBuilder(int index)
       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

      Common.DocumentWithId getDocuments(int index)
       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

      Common.DocumentWithIdOrBuilder getDocumentsOrBuilder(int index)
       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;