Class Store.TxnPessimisticLockResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.store.Store.TxnPessimisticLockResponse
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Store.TxnPessimisticLockResponseOrBuilder, Serializable
Enclosing class:
Store

public static final class Store.TxnPessimisticLockResponse extends com.google.protobuf.GeneratedMessageV3 implements Store.TxnPessimisticLockResponseOrBuilder
Protobuf type dingodb.pb.store.TxnPessimisticLockResponse
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasResponseInfo

      public boolean hasResponseInfo()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      hasResponseInfo in interface Store.TxnPessimisticLockResponseOrBuilder
      Returns:
      Whether the responseInfo field is set.
    • getResponseInfo

      public Common.ResponseInfo getResponseInfo()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      getResponseInfo in interface Store.TxnPessimisticLockResponseOrBuilder
      Returns:
      The responseInfo.
    • getResponseInfoOrBuilder

      public Common.ResponseInfoOrBuilder getResponseInfoOrBuilder()
       response info
       
      .dingodb.pb.common.ResponseInfo response_info = 1;
      Specified by:
      getResponseInfoOrBuilder in interface Store.TxnPessimisticLockResponseOrBuilder
    • hasError

      public boolean hasError()
       error code
       
      .dingodb.pb.error.Error error = 2;
      Specified by:
      hasError in interface Store.TxnPessimisticLockResponseOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public ErrorOuterClass.Error getError()
       error code
       
      .dingodb.pb.error.Error error = 2;
      Specified by:
      getError in interface Store.TxnPessimisticLockResponseOrBuilder
      Returns:
      The error.
    • getErrorOrBuilder

      public ErrorOuterClass.ErrorOrBuilder getErrorOrBuilder()
       error code
       
      .dingodb.pb.error.Error error = 2;
      Specified by:
      getErrorOrBuilder in interface Store.TxnPessimisticLockResponseOrBuilder
    • getTxnResultList

      public 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;
      Specified by:
      getTxnResultList in interface Store.TxnPessimisticLockResponseOrBuilder
    • getTxnResultOrBuilderList

      public 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;
      Specified by:
      getTxnResultOrBuilderList in interface Store.TxnPessimisticLockResponseOrBuilder
    • getTxnResultCount

      public 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;
      Specified by:
      getTxnResultCount in interface Store.TxnPessimisticLockResponseOrBuilder
    • getTxnResult

      public 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;
      Specified by:
      getTxnResult in interface Store.TxnPessimisticLockResponseOrBuilder
    • getTxnResultOrBuilder

      public 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;
      Specified by:
      getTxnResultOrBuilder in interface Store.TxnPessimisticLockResponseOrBuilder
    • getKvsList

      public 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;
      Specified by:
      getKvsList in interface Store.TxnPessimisticLockResponseOrBuilder
    • getKvsOrBuilderList

      public 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;
      Specified by:
      getKvsOrBuilderList in interface Store.TxnPessimisticLockResponseOrBuilder
    • getKvsCount

      public 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;
      Specified by:
      getKvsCount in interface Store.TxnPessimisticLockResponseOrBuilder
    • getKvs

      public 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;
      Specified by:
      getKvs in interface Store.TxnPessimisticLockResponseOrBuilder
    • getKvsOrBuilder

      public 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;
      Specified by:
      getKvsOrBuilder in interface Store.TxnPessimisticLockResponseOrBuilder
    • getVectorList

      public 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;
      Specified by:
      getVectorList in interface Store.TxnPessimisticLockResponseOrBuilder
    • getVectorOrBuilderList

      public 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;
      Specified by:
      getVectorOrBuilderList in interface Store.TxnPessimisticLockResponseOrBuilder
    • getVectorCount

      public 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;
      Specified by:
      getVectorCount in interface Store.TxnPessimisticLockResponseOrBuilder
    • getVector

      public 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;
      Specified by:
      getVector in interface Store.TxnPessimisticLockResponseOrBuilder
    • getVectorOrBuilder

      public 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;
      Specified by:
      getVectorOrBuilder in interface Store.TxnPessimisticLockResponseOrBuilder
    • getDocumentsList

      public 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;
      Specified by:
      getDocumentsList in interface Store.TxnPessimisticLockResponseOrBuilder
    • getDocumentsOrBuilderList

      public 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;
      Specified by:
      getDocumentsOrBuilderList in interface Store.TxnPessimisticLockResponseOrBuilder
    • getDocumentsCount

      public 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;
      Specified by:
      getDocumentsCount in interface Store.TxnPessimisticLockResponseOrBuilder
    • getDocuments

      public 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;
      Specified by:
      getDocuments in interface Store.TxnPessimisticLockResponseOrBuilder
    • getDocumentsOrBuilder

      public 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;
      Specified by:
      getDocumentsOrBuilder in interface Store.TxnPessimisticLockResponseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Store.TxnPessimisticLockResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnPessimisticLockResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnPessimisticLockResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnPessimisticLockResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnPessimisticLockResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnPessimisticLockResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.TxnPessimisticLockResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Store.TxnPessimisticLockResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Store.TxnPessimisticLockResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Store.TxnPessimisticLockResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Store.TxnPessimisticLockResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Store.TxnPessimisticLockResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Store.TxnPessimisticLockResponse.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Store.TxnPessimisticLockResponse.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Store.TxnPessimisticLockResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Store.TxnPessimisticLockResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Store.TxnPessimisticLockResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<Store.TxnPessimisticLockResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Store.TxnPessimisticLockResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder