Package io.dingodb.store
Class Store.TxnScanResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.store.Store.TxnScanResponse
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Store.TxnScanResponseOrBuilder,Serializable
- Enclosing class:
- Store
public static final class Store.TxnScanResponse
extends com.google.protobuf.GeneratedMessageV3
implements Store.TxnScanResponseOrBuilder
TxnScan can be partially success if kvs is not null, and has_more is true, means scan is not finished, client should continue to scan from end_key. if txn_result is not null, the kvs may not null, client can use kvs as a partial result, and should continue to scan after resolve lock.Protobuf type
dingodb.pb.store.TxnScanResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classTxnScan can be partially success if kvs is not null, and has_more is true, means scan is not finished, client should continue to scan from end_key.Nested 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 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 Store.TxnScanResponsestatic final com.google.protobuf.Descriptors.DescriptorgetDocuments(int index) for document index region, documents is the return value of the scan requestintfor document index region, documents is the return value of the scan requestfor document index region, documents is the return value of the scan requestgetDocumentsOrBuilder(int index) for document index region, documents is the return value of the scan requestList<? extends Common.DocumentWithIdOrBuilder>for document index region, documents is the return value of the scan requestcom.google.protobuf.ByteStringthe last iteratered key of this scan response.getError()error codeerror codebooleanif scan is not finished, has_more is true, otherwise falsegetKvs(int index) for store table/index region, kvs is the return value of the scan requestintfor store table/index region, kvs is the return value of the scan requestfor store table/index region, kvs is the return value of the scan requestgetKvsOrBuilder(int index) for store table/index region, kvs is the return value of the scan requestList<? extends Common.KeyValueOrBuilder>for store table/index region, kvs is the return value of the scan requestcom.google.protobuf.Parser<Store.TxnScanResponse>response inforesponse infoint.dingodb.pb.stream.StreamResponseMeta stream_meta = 30;.dingodb.pb.stream.StreamResponseMeta stream_meta = 30;This txn_result exists when some key is locked but we cannot check locks of all keys.This txn_result exists when some key is locked but we cannot check locks of all keys.getVectors(int index) for vector index region, vectors is the return value of the scan requestintfor vector index region, vectors is the return value of the scan requestfor vector index region, vectors is the return value of the scan requestgetVectorsOrBuilder(int index) for vector index region, vectors is the return value of the scan requestList<? extends Common.VectorWithIdOrBuilder>for vector index region, vectors is the return value of the scan requestbooleanhasError()error codeinthashCode()booleanresponse infoboolean.dingodb.pb.stream.StreamResponseMeta stream_meta = 30;booleanThis txn_result exists when some key is locked but we cannot check locks of all keys.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Store.TxnScanResponse prototype) protected Store.TxnScanResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Store.TxnScanResponseparseDelimitedFrom(InputStream input) static Store.TxnScanResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.TxnScanResponseparseFrom(byte[] data) static Store.TxnScanResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.TxnScanResponseparseFrom(com.google.protobuf.ByteString data) static Store.TxnScanResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.TxnScanResponseparseFrom(com.google.protobuf.CodedInputStream input) static Store.TxnScanResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.TxnScanResponseparseFrom(InputStream input) static Store.TxnScanResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.TxnScanResponseparseFrom(ByteBuffer data) static Store.TxnScanResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Store.TxnScanResponse>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:
-
VECTORS_FIELD_NUMBER
public static final int VECTORS_FIELD_NUMBER- See Also:
-
HAS_MORE_FIELD_NUMBER
public static final int HAS_MORE_FIELD_NUMBER- See Also:
-
END_KEY_FIELD_NUMBER
public static final int END_KEY_FIELD_NUMBER- See Also:
-
DOCUMENTS_FIELD_NUMBER
public static final int DOCUMENTS_FIELD_NUMBER- See Also:
-
STREAM_META_FIELD_NUMBER
public static final int STREAM_META_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.TxnScanResponseOrBuilder- Returns:
- Whether the responseInfo field is set.
-
getResponseInfo
response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
getResponseInfoin interfaceStore.TxnScanResponseOrBuilder- Returns:
- The responseInfo.
-
getResponseInfoOrBuilder
response info
.dingodb.pb.common.ResponseInfo response_info = 1;- Specified by:
getResponseInfoOrBuilderin interfaceStore.TxnScanResponseOrBuilder
-
hasError
public boolean hasError()error code
.dingodb.pb.error.Error error = 2;- Specified by:
hasErrorin interfaceStore.TxnScanResponseOrBuilder- Returns:
- Whether the error field is set.
-
getError
error code
.dingodb.pb.error.Error error = 2;- Specified by:
getErrorin interfaceStore.TxnScanResponseOrBuilder- Returns:
- The error.
-
getErrorOrBuilder
error code
.dingodb.pb.error.Error error = 2;- Specified by:
getErrorOrBuilderin interfaceStore.TxnScanResponseOrBuilder
-
hasTxnResult
public boolean hasTxnResult()This txn_result exists when some key is locked but we cannot check locks of all keys. In this case, `kvs` should be empty and the client should redo scanning all the keys after resolving the lock. the txn_result is one of the following: 1. LockInfo: Read conflict with key which is locked by another transaction. 2. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3;- Specified by:
hasTxnResultin interfaceStore.TxnScanResponseOrBuilder- Returns:
- Whether the txnResult field is set.
-
getTxnResult
This txn_result exists when some key is locked but we cannot check locks of all keys. In this case, `kvs` should be empty and the client should redo scanning all the keys after resolving the lock. the txn_result is one of the following: 1. LockInfo: Read conflict with key which is locked by another transaction. 2. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3;- Specified by:
getTxnResultin interfaceStore.TxnScanResponseOrBuilder- Returns:
- The txnResult.
-
getTxnResultOrBuilder
This txn_result exists when some key is locked but we cannot check locks of all keys. In this case, `kvs` should be empty and the client should redo scanning all the keys after resolving the lock. the txn_result is one of the following: 1. LockInfo: Read conflict with key which is locked by another transaction. 2. otherwise, txn_result is empty
.dingodb.pb.store.TxnResultInfo txn_result = 3;- Specified by:
getTxnResultOrBuilderin interfaceStore.TxnScanResponseOrBuilder
-
getKvsList
for store table/index region, kvs is the return value of the scan request
repeated .dingodb.pb.common.KeyValue kvs = 4;- Specified by:
getKvsListin interfaceStore.TxnScanResponseOrBuilder
-
getKvsOrBuilderList
for store table/index region, kvs is the return value of the scan request
repeated .dingodb.pb.common.KeyValue kvs = 4;- Specified by:
getKvsOrBuilderListin interfaceStore.TxnScanResponseOrBuilder
-
getKvsCount
public int getKvsCount()for store table/index region, kvs is the return value of the scan request
repeated .dingodb.pb.common.KeyValue kvs = 4;- Specified by:
getKvsCountin interfaceStore.TxnScanResponseOrBuilder
-
getKvs
for store table/index region, kvs is the return value of the scan request
repeated .dingodb.pb.common.KeyValue kvs = 4;- Specified by:
getKvsin interfaceStore.TxnScanResponseOrBuilder
-
getKvsOrBuilder
for store table/index region, kvs is the return value of the scan request
repeated .dingodb.pb.common.KeyValue kvs = 4;- Specified by:
getKvsOrBuilderin interfaceStore.TxnScanResponseOrBuilder
-
getVectorsList
for vector index region, vectors is the return value of the scan request
repeated .dingodb.pb.common.VectorWithId vectors = 5;- Specified by:
getVectorsListin interfaceStore.TxnScanResponseOrBuilder
-
getVectorsOrBuilderList
for vector index region, vectors is the return value of the scan request
repeated .dingodb.pb.common.VectorWithId vectors = 5;- Specified by:
getVectorsOrBuilderListin interfaceStore.TxnScanResponseOrBuilder
-
getVectorsCount
public int getVectorsCount()for vector index region, vectors is the return value of the scan request
repeated .dingodb.pb.common.VectorWithId vectors = 5;- Specified by:
getVectorsCountin interfaceStore.TxnScanResponseOrBuilder
-
getVectors
for vector index region, vectors is the return value of the scan request
repeated .dingodb.pb.common.VectorWithId vectors = 5;- Specified by:
getVectorsin interfaceStore.TxnScanResponseOrBuilder
-
getVectorsOrBuilder
for vector index region, vectors is the return value of the scan request
repeated .dingodb.pb.common.VectorWithId vectors = 5;- Specified by:
getVectorsOrBuilderin interfaceStore.TxnScanResponseOrBuilder
-
getHasMore
public boolean getHasMore()if scan is not finished, has_more is true, otherwise false
bool has_more = 6;- Specified by:
getHasMorein interfaceStore.TxnScanResponseOrBuilder- Returns:
- The hasMore.
-
getEndKey
public com.google.protobuf.ByteString getEndKey()the last iteratered key of this scan response. if end_key is null, means scan do not successfully iterate any key.
bytes end_key = 7;- Specified by:
getEndKeyin interfaceStore.TxnScanResponseOrBuilder- Returns:
- The endKey.
-
getDocumentsList
for document index region, documents is the return value of the scan request
repeated .dingodb.pb.common.DocumentWithId documents = 8;- Specified by:
getDocumentsListin interfaceStore.TxnScanResponseOrBuilder
-
getDocumentsOrBuilderList
for document index region, documents is the return value of the scan request
repeated .dingodb.pb.common.DocumentWithId documents = 8;- Specified by:
getDocumentsOrBuilderListin interfaceStore.TxnScanResponseOrBuilder
-
getDocumentsCount
public int getDocumentsCount()for document index region, documents is the return value of the scan request
repeated .dingodb.pb.common.DocumentWithId documents = 8;- Specified by:
getDocumentsCountin interfaceStore.TxnScanResponseOrBuilder
-
getDocuments
for document index region, documents is the return value of the scan request
repeated .dingodb.pb.common.DocumentWithId documents = 8;- Specified by:
getDocumentsin interfaceStore.TxnScanResponseOrBuilder
-
getDocumentsOrBuilder
for document index region, documents is the return value of the scan request
repeated .dingodb.pb.common.DocumentWithId documents = 8;- Specified by:
getDocumentsOrBuilderin interfaceStore.TxnScanResponseOrBuilder
-
hasStreamMeta
public boolean hasStreamMeta().dingodb.pb.stream.StreamResponseMeta stream_meta = 30;- Specified by:
hasStreamMetain interfaceStore.TxnScanResponseOrBuilder- Returns:
- Whether the streamMeta field is set.
-
getStreamMeta
.dingodb.pb.stream.StreamResponseMeta stream_meta = 30;- Specified by:
getStreamMetain interfaceStore.TxnScanResponseOrBuilder- Returns:
- The streamMeta.
-
getStreamMetaOrBuilder
.dingodb.pb.stream.StreamResponseMeta stream_meta = 30;- Specified by:
getStreamMetaOrBuilderin interfaceStore.TxnScanResponseOrBuilder
-
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.TxnScanResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.TxnScanResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.TxnScanResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.TxnScanResponse 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.TxnScanResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.TxnScanResponse 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.TxnScanResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Store.TxnScanResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Store.TxnScanResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Store.TxnScanResponse 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.TxnScanResponse.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
-