Package io.dingodb.store
Interface Store.TxnCommitResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Store.TxnCommitResponse,Store.TxnCommitResponse.Builder
- Enclosing class:
- Store
public static interface Store.TxnCommitResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongThe commit_ts of the transaction.getError()error codeerror coderesponse inforesponse infothe txn_result is one of the following: 1.the txn_result is one of the following: 1.booleanhasError()error codebooleanresponse infobooleanthe txn_result is one of the following: 1.Methods 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; -
hasTxnResult
boolean hasTxnResult()the txn_result is one of the following: 1. LockInfo: Commit meets a lock and can't proceed, the lock is returned 2. TxnNotFound: if committing a key but not found its lock, the lock may be cleaned up by gc or resolved by. If committing primary key meet this error, the transaction may be rolled back. If committing secondary key meet this, Executor can think its lock is resolved, and continue to commit. 3. WriteConflict: SelfRolledBack: the transaction itself has been rolled back when it tries to commit. 4. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3;- Returns:
- Whether the txnResult field is set.
-
getTxnResult
Store.TxnResultInfo getTxnResult()the txn_result is one of the following: 1. LockInfo: Commit meets a lock and can't proceed, the lock is returned 2. TxnNotFound: if committing a key but not found its lock, the lock may be cleaned up by gc or resolved by. If committing primary key meet this error, the transaction may be rolled back. If committing secondary key meet this, Executor can think its lock is resolved, and continue to commit. 3. WriteConflict: SelfRolledBack: the transaction itself has been rolled back when it tries to commit. 4. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3;- Returns:
- The txnResult.
-
getTxnResultOrBuilder
Store.TxnResultInfoOrBuilder getTxnResultOrBuilder()the txn_result is one of the following: 1. LockInfo: Commit meets a lock and can't proceed, the lock is returned 2. TxnNotFound: if committing a key but not found its lock, the lock may be cleaned up by gc or resolved by. If committing primary key meet this error, the transaction may be rolled back. If committing secondary key meet this, Executor can think its lock is resolved, and continue to commit. 3. WriteConflict: SelfRolledBack: the transaction itself has been rolled back when it tries to commit. 4. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3; -
getCommitTs
long getCommitTs()The commit_ts of the transaction.
int64 commit_ts = 4;- Returns:
- The commitTs.
-