Package io.dingodb.store
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.store.TxnResultInfoNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanCommit ts is earlier than min commit ts of a transaction.Commit ts is earlier than min commit ts of a transaction.static Store.TxnResultInfostatic final com.google.protobuf.Descriptors.DescriptorClient should backoff or cleanup the lock then retry, this error occurs in get phase.Client should backoff or cleanup the lock then retry, this error occurs in get phase.com.google.protobuf.Parser<Store.TxnResultInfo>CheckTxnStatus is sent to a lock that's not the primary.CheckTxnStatus is sent to a lock that's not the primary.intTxn not found when checking txn status.Txn not found when checking txn status.Write conflict with key which is locked by another transaction, this error occurs in prewrite phase.Write conflict with key which is locked by another transaction, this error occurs in prewrite phase.booleanCommit ts is earlier than min commit ts of a transaction.inthashCode()booleanClient should backoff or cleanup the lock then retry, this error occurs in get phase.booleanCheckTxnStatus is sent to a lock that's not the primary.booleanTxn not found when checking txn status.booleanWrite conflict with key which is locked by another transaction, this error occurs in prewrite phase.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Store.TxnResultInfo.Builderstatic Store.TxnResultInfo.BuildernewBuilder(Store.TxnResultInfo prototype) protected Store.TxnResultInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Store.TxnResultInfoparseDelimitedFrom(InputStream input) static Store.TxnResultInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.TxnResultInfoparseFrom(byte[] data) static Store.TxnResultInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.TxnResultInfoparseFrom(com.google.protobuf.ByteString data) static Store.TxnResultInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.TxnResultInfoparseFrom(com.google.protobuf.CodedInputStream input) static Store.TxnResultInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.TxnResultInfoparseFrom(InputStream input) static Store.TxnResultInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.TxnResultInfoparseFrom(ByteBuffer data) static Store.TxnResultInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Store.TxnResultInfo>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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:
hasLockedin interfaceStore.TxnResultInfoOrBuilder- Returns:
- Whether the locked field is set.
-
getLocked
Client should backoff or cleanup the lock then retry, this error occurs in get phase.
.dingodb.pb.store.LockInfo locked = 1;- Specified by:
getLockedin interfaceStore.TxnResultInfoOrBuilder- Returns:
- The locked.
-
getLockedOrBuilder
Client should backoff or cleanup the lock then retry, this error occurs in get phase.
.dingodb.pb.store.LockInfo locked = 1;- Specified by:
getLockedOrBuilderin interfaceStore.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:
hasWriteConflictin interfaceStore.TxnResultInfoOrBuilder- Returns:
- Whether the writeConflict field is set.
-
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:
getWriteConflictin interfaceStore.TxnResultInfoOrBuilder- Returns:
- The writeConflict.
-
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:
getWriteConflictOrBuilderin interfaceStore.TxnResultInfoOrBuilder
-
hasTxnNotFound
public boolean hasTxnNotFound()Txn not found when checking txn status.
.dingodb.pb.store.TxnNotFound txn_not_found = 3;- Specified by:
hasTxnNotFoundin interfaceStore.TxnResultInfoOrBuilder- Returns:
- Whether the txnNotFound field is set.
-
getTxnNotFound
Txn not found when checking txn status.
.dingodb.pb.store.TxnNotFound txn_not_found = 3;- Specified by:
getTxnNotFoundin interfaceStore.TxnResultInfoOrBuilder- Returns:
- The txnNotFound.
-
getTxnNotFoundOrBuilder
Txn not found when checking txn status.
.dingodb.pb.store.TxnNotFound txn_not_found = 3;- Specified by:
getTxnNotFoundOrBuilderin interfaceStore.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:
hasPrimaryMismatchin interfaceStore.TxnResultInfoOrBuilder- Returns:
- Whether the primaryMismatch field is set.
-
getPrimaryMismatch
CheckTxnStatus is sent to a lock that's not the primary.
.dingodb.pb.store.PrimaryMismatch primary_mismatch = 4;- Specified by:
getPrimaryMismatchin interfaceStore.TxnResultInfoOrBuilder- Returns:
- The primaryMismatch.
-
getPrimaryMismatchOrBuilder
CheckTxnStatus is sent to a lock that's not the primary.
.dingodb.pb.store.PrimaryMismatch primary_mismatch = 4;- Specified by:
getPrimaryMismatchOrBuilderin interfaceStore.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:
hasCommitTsExpiredin interfaceStore.TxnResultInfoOrBuilder- Returns:
- Whether the commitTsExpired field is set.
-
getCommitTsExpired
Commit ts is earlier than min commit ts of a transaction.
.dingodb.pb.store.CommitTsExpired commit_ts_expired = 5;- Specified by:
getCommitTsExpiredin interfaceStore.TxnResultInfoOrBuilder- Returns:
- The commitTsExpired.
-
getCommitTsExpiredOrBuilder
Commit ts is earlier than min commit ts of a transaction.
.dingodb.pb.store.CommitTsExpired commit_ts_expired = 5;- Specified by:
getCommitTsExpiredOrBuilderin interfaceStore.TxnResultInfoOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Store.TxnResultInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Store.TxnResultInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-