Package io.dingodb.store
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.store.TxnPessimisticLockResponseNested 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 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 TypeMethodDescriptionbooleanstatic final com.google.protobuf.Descriptors.DescriptorgetDocuments(int index) for document index region: When some key is locked but we cannot check locks of all keys.intfor document index region: When some key is locked but we cannot check locks of all keys.for document index region: When some key is locked but we cannot check locks of all keys.getDocumentsOrBuilder(int index) for document index region: When some key is locked but we cannot check locks of all keys.List<? extends Common.DocumentWithIdOrBuilder>for document index region: When some key is locked but we cannot check locks of all keys.getError()error codeerror codegetKvs(int index) The values is set if 'return_values' is true in the request and no error.intThe values is set if 'return_values' is true in the request and no error.The values is set if 'return_values' is true in the request and no error.getKvsOrBuilder(int index) The values is set if 'return_values' is true in the request and no error.List<? extends Common.KeyValueOrBuilder>The values is set if 'return_values' is true in the request and no error.com.google.protobuf.Parser<Store.TxnPessimisticLockResponse>response inforesponse infointgetTxnResult(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.intif 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.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.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.List<? extends Store.TxnResultInfoOrBuilder>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.getVector(int index) The values is set if 'return_values' is true in the request and no error.intThe values is set if 'return_values' is true in the request and no error.The values is set if 'return_values' is true in the request and no error.getVectorOrBuilder(int index) The values is set if 'return_values' is true in the request and no error.List<? extends Common.VectorWithIdOrBuilder>The values is set if 'return_values' is true in the request and no error.booleanhasError()error codeinthashCode()booleanresponse infoprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Store.TxnPessimisticLockResponse prototype) protected Store.TxnPessimisticLockResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Store.TxnPessimisticLockResponse>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
-
RESPONSE_INFO_FIELD_NUMBER
public static final int RESPONSE_INFO_FIELD_NUMBER- See Also:
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
TXN_RESULT_FIELD_NUMBER
public static final int TXN_RESULT_FIELD_NUMBER- See Also:
-
KVS_FIELD_NUMBER
public static final int KVS_FIELD_NUMBER- See Also:
-
VECTOR_FIELD_NUMBER
public static final int VECTOR_FIELD_NUMBER- See Also:
-
DOCUMENTS_FIELD_NUMBER
public static final int DOCUMENTS_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
-
hasResponseInfo
public boolean hasResponseInfo()response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
hasResponseInfoin interfaceStore.TxnPessimisticLockResponseOrBuilder- Returns:
- Whether the responseInfo field is set.
-
getResponseInfo
response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
getResponseInfoin interfaceStore.TxnPessimisticLockResponseOrBuilder- Returns:
- The responseInfo.
-
getResponseInfoOrBuilder
response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
getResponseInfoOrBuilderin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
hasError
public boolean hasError()error code
.dingodb.pb.error.Error error = 2;- Specified by:
hasErrorin interfaceStore.TxnPessimisticLockResponseOrBuilder- Returns:
- Whether the error field is set.
-
getError
error code
.dingodb.pb.error.Error error = 2;- Specified by:
getErrorin interfaceStore.TxnPessimisticLockResponseOrBuilder- Returns:
- The error.
-
getErrorOrBuilder
error code
.dingodb.pb.error.Error error = 2;- Specified by:
getErrorOrBuilderin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
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:
getTxnResultListin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
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:
getTxnResultOrBuilderListin interfaceStore.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:
getTxnResultCountin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
getTxnResult
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:
getTxnResultin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
getTxnResultOrBuilder
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:
getTxnResultOrBuilderin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
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:
getKvsListin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
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:
getKvsOrBuilderListin interfaceStore.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:
getKvsCountin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
getKvs
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:
getKvsin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
getKvsOrBuilder
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:
getKvsOrBuilderin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
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:
getVectorListin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
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:
getVectorOrBuilderListin interfaceStore.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:
getVectorCountin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
getVector
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:
getVectorin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
getVectorOrBuilder
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:
getVectorOrBuilderin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
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:
getDocumentsListin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
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:
getDocumentsOrBuilderListin interfaceStore.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:
getDocumentsCountin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
getDocuments
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:
getDocumentsin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
getDocumentsOrBuilder
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:
getDocumentsOrBuilderin interfaceStore.TxnPessimisticLockResponseOrBuilder
-
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.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
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static Store.TxnPessimisticLockResponse.Builder newBuilder(Store.TxnPessimisticLockResponse prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Store.TxnPessimisticLockResponse.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
-