Class Store.TxnResultInfo

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

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

    • LOCKED_FIELD_NUMBER

      public static final int LOCKED_FIELD_NUMBER
      See Also:
    • WRITE_CONFLICT_FIELD_NUMBER

      public static final int WRITE_CONFLICT_FIELD_NUMBER
      See Also:
    • TXN_NOT_FOUND_FIELD_NUMBER

      public static final int TXN_NOT_FOUND_FIELD_NUMBER
      See Also:
    • PRIMARY_MISMATCH_FIELD_NUMBER

      public static final int PRIMARY_MISMATCH_FIELD_NUMBER
      See Also:
    • COMMIT_TS_EXPIRED_FIELD_NUMBER

      public static final int COMMIT_TS_EXPIRED_FIELD_NUMBER
      See Also:
  • 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
    • hasLocked

      public boolean hasLocked()
       Client should backoff or cleanup the lock then retry, this error occurs in get phase.
       
      .dingodb.pb.store.LockInfo locked = 1;
      Specified by:
      hasLocked in interface Store.TxnResultInfoOrBuilder
      Returns:
      Whether the locked field is set.
    • getLocked

      public Store.LockInfo getLocked()
       Client should backoff or cleanup the lock then retry, this error occurs in get phase.
       
      .dingodb.pb.store.LockInfo locked = 1;
      Specified by:
      getLocked in interface Store.TxnResultInfoOrBuilder
      Returns:
      The locked.
    • getLockedOrBuilder

      public Store.LockInfoOrBuilder getLockedOrBuilder()
       Client should backoff or cleanup the lock then retry, this error occurs in get phase.
       
      .dingodb.pb.store.LockInfo locked = 1;
      Specified by:
      getLockedOrBuilder in interface Store.TxnResultInfoOrBuilder
    • hasWriteConflict

      public boolean hasWriteConflict()
       Write conflict with key which is locked by another transaction, this error occurs in prewrite phase.
       
      .dingodb.pb.store.WriteConflict write_conflict = 2;
      Specified by:
      hasWriteConflict in interface Store.TxnResultInfoOrBuilder
      Returns:
      Whether the writeConflict field is set.
    • getWriteConflict

      public Store.WriteConflict getWriteConflict()
       Write conflict with key which is locked by another transaction, this error occurs in prewrite phase.
       
      .dingodb.pb.store.WriteConflict write_conflict = 2;
      Specified by:
      getWriteConflict in interface Store.TxnResultInfoOrBuilder
      Returns:
      The writeConflict.
    • getWriteConflictOrBuilder

      public Store.WriteConflictOrBuilder getWriteConflictOrBuilder()
       Write conflict with key which is locked by another transaction, this error occurs in prewrite phase.
       
      .dingodb.pb.store.WriteConflict write_conflict = 2;
      Specified by:
      getWriteConflictOrBuilder in interface Store.TxnResultInfoOrBuilder
    • hasTxnNotFound

      public boolean hasTxnNotFound()
       Txn not found when checking txn status.
       
      .dingodb.pb.store.TxnNotFound txn_not_found = 3;
      Specified by:
      hasTxnNotFound in interface Store.TxnResultInfoOrBuilder
      Returns:
      Whether the txnNotFound field is set.
    • getTxnNotFound

      public Store.TxnNotFound getTxnNotFound()
       Txn not found when checking txn status.
       
      .dingodb.pb.store.TxnNotFound txn_not_found = 3;
      Specified by:
      getTxnNotFound in interface Store.TxnResultInfoOrBuilder
      Returns:
      The txnNotFound.
    • getTxnNotFoundOrBuilder

      public Store.TxnNotFoundOrBuilder getTxnNotFoundOrBuilder()
       Txn not found when checking txn status.
       
      .dingodb.pb.store.TxnNotFound txn_not_found = 3;
      Specified by:
      getTxnNotFoundOrBuilder in interface Store.TxnResultInfoOrBuilder
    • hasPrimaryMismatch

      public boolean hasPrimaryMismatch()
       CheckTxnStatus is sent to a lock that's not the primary.
       
      .dingodb.pb.store.PrimaryMismatch primary_mismatch = 4;
      Specified by:
      hasPrimaryMismatch in interface Store.TxnResultInfoOrBuilder
      Returns:
      Whether the primaryMismatch field is set.
    • getPrimaryMismatch

      public Store.PrimaryMismatch getPrimaryMismatch()
       CheckTxnStatus is sent to a lock that's not the primary.
       
      .dingodb.pb.store.PrimaryMismatch primary_mismatch = 4;
      Specified by:
      getPrimaryMismatch in interface Store.TxnResultInfoOrBuilder
      Returns:
      The primaryMismatch.
    • getPrimaryMismatchOrBuilder

      public Store.PrimaryMismatchOrBuilder getPrimaryMismatchOrBuilder()
       CheckTxnStatus is sent to a lock that's not the primary.
       
      .dingodb.pb.store.PrimaryMismatch primary_mismatch = 4;
      Specified by:
      getPrimaryMismatchOrBuilder in interface Store.TxnResultInfoOrBuilder
    • hasCommitTsExpired

      public boolean hasCommitTsExpired()
       Commit ts is earlier than min commit ts of a transaction.
       
      .dingodb.pb.store.CommitTsExpired commit_ts_expired = 5;
      Specified by:
      hasCommitTsExpired in interface Store.TxnResultInfoOrBuilder
      Returns:
      Whether the commitTsExpired field is set.
    • getCommitTsExpired

      public Store.CommitTsExpired getCommitTsExpired()
       Commit ts is earlier than min commit ts of a transaction.
       
      .dingodb.pb.store.CommitTsExpired commit_ts_expired = 5;
      Specified by:
      getCommitTsExpired in interface Store.TxnResultInfoOrBuilder
      Returns:
      The commitTsExpired.
    • getCommitTsExpiredOrBuilder

      public Store.CommitTsExpiredOrBuilder getCommitTsExpiredOrBuilder()
       Commit ts is earlier than min commit ts of a transaction.
       
      .dingodb.pb.store.CommitTsExpired commit_ts_expired = 5;
      Specified by:
      getCommitTsExpiredOrBuilder in interface Store.TxnResultInfoOrBuilder
    • 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.TxnResultInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Store.TxnResultInfo 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.TxnResultInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

      public static Store.TxnResultInfo.Builder newBuilder(Store.TxnResultInfo prototype)
    • toBuilder

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

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

      public static Store.TxnResultInfo getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Store.TxnResultInfo> 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.TxnResultInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder