Package io.dingodb.version
Class Version.RangeRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.version.Version.RangeRequest
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Version.RangeRequestOrBuilder,Serializable
- Enclosing class:
- Version
public static final class Version.RangeRequest
extends com.google.protobuf.GeneratedMessageV3
implements Version.RangeRequestOrBuilder
Protobuf type
dingodb.pb.version.RangeRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.version.RangeRequestNested 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 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 TypeMethodDescriptionbooleanbooleancount_only when set returns only the count of the keys in the range.static Version.RangeRequeststatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringgetKey()key is the first key for the range.booleankeys_only when set returns only the keys and not the values.longgetLimit()limit is a limit on the number of keys returned for the request.longmax_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.longmax_mod_revision is the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.longmin_create_revision is the lower bound for returned key create revisions; all keys with lesser create revisions will be filtered away.longmin_mod_revision is the lower bound for returned key mod revisions; all keys with lesser mod revisions will be filtered away.com.google.protobuf.Parser<Version.RangeRequest>com.google.protobuf.ByteStringrange_end is the upper bound on the requested range [key, range_end)..dingodb.pb.common.RequestInfo request_info = 1;.dingodb.pb.common.RequestInfo request_info = 1;longrevision is the point-in-time of the key-value store to use for the range.booleanserializable sets the range request to use serializable member-local reads.intinthashCode()boolean.dingodb.pb.common.RequestInfo request_info = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Version.RangeRequest.Builderstatic Version.RangeRequest.BuildernewBuilder(Version.RangeRequest prototype) protected Version.RangeRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Version.RangeRequestparseDelimitedFrom(InputStream input) static Version.RangeRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Version.RangeRequestparseFrom(byte[] data) static Version.RangeRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Version.RangeRequestparseFrom(com.google.protobuf.ByteString data) static Version.RangeRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Version.RangeRequestparseFrom(com.google.protobuf.CodedInputStream input) static Version.RangeRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Version.RangeRequestparseFrom(InputStream input) static Version.RangeRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Version.RangeRequestparseFrom(ByteBuffer data) static Version.RangeRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Version.RangeRequest>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
-
REQUEST_INFO_FIELD_NUMBER
public static final int REQUEST_INFO_FIELD_NUMBER- See Also:
-
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER- See Also:
-
RANGE_END_FIELD_NUMBER
public static final int RANGE_END_FIELD_NUMBER- See Also:
-
LIMIT_FIELD_NUMBER
public static final int LIMIT_FIELD_NUMBER- See Also:
-
REVISION_FIELD_NUMBER
public static final int REVISION_FIELD_NUMBER- See Also:
-
SERIALIZABLE_FIELD_NUMBER
public static final int SERIALIZABLE_FIELD_NUMBER- See Also:
-
KEYS_ONLY_FIELD_NUMBER
public static final int KEYS_ONLY_FIELD_NUMBER- See Also:
-
COUNT_ONLY_FIELD_NUMBER
public static final int COUNT_ONLY_FIELD_NUMBER- See Also:
-
MIN_MOD_REVISION_FIELD_NUMBER
public static final int MIN_MOD_REVISION_FIELD_NUMBER- See Also:
-
MAX_MOD_REVISION_FIELD_NUMBER
public static final int MAX_MOD_REVISION_FIELD_NUMBER- See Also:
-
MIN_CREATE_REVISION_FIELD_NUMBER
public static final int MIN_CREATE_REVISION_FIELD_NUMBER- See Also:
-
MAX_CREATE_REVISION_FIELD_NUMBER
public static final int MAX_CREATE_REVISION_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
-
hasRequestInfo
public boolean hasRequestInfo().dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
hasRequestInfoin interfaceVersion.RangeRequestOrBuilder- Returns:
- Whether the requestInfo field is set.
-
getRequestInfo
.dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
getRequestInfoin interfaceVersion.RangeRequestOrBuilder- Returns:
- The requestInfo.
-
getRequestInfoOrBuilder
.dingodb.pb.common.RequestInfo request_info = 1;- Specified by:
getRequestInfoOrBuilderin interfaceVersion.RangeRequestOrBuilder
-
getKey
public com.google.protobuf.ByteString getKey()key is the first key for the range. If range_end is not given, the request only looks up key.
bytes key = 2;- Specified by:
getKeyin interfaceVersion.RangeRequestOrBuilder- Returns:
- The key.
-
getRangeEnd
public com.google.protobuf.ByteString getRangeEnd()range_end is the upper bound on the requested range [key, range_end). If range_end is '\0', the range is all keys >= key. If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"), then the range request gets all keys prefixed with key. If both key and range_end are '\0', then the range request returns all keys.
bytes range_end = 3;- Specified by:
getRangeEndin interfaceVersion.RangeRequestOrBuilder- Returns:
- The rangeEnd.
-
getLimit
public long getLimit()limit is a limit on the number of keys returned for the request. When limit is set to 0, it is treated as no limit.
int64 limit = 4;- Specified by:
getLimitin interfaceVersion.RangeRequestOrBuilder- Returns:
- The limit.
-
getRevision
public long getRevision()revision is the point-in-time of the key-value store to use for the range. If revision is less or equal to zero, the range is over the newest key-value store. If the revision has been compacted, ErrCompacted is returned as a response.
int64 revision = 5;- Specified by:
getRevisionin interfaceVersion.RangeRequestOrBuilder- Returns:
- The revision.
-
getSerializable
public boolean getSerializable()serializable sets the range request to use serializable member-local reads. Range requests are linearizable by default; linearizable requests have higher latency and lower throughput than serializable requests but reflect the current consensus of the cluster. For better performance, in exchange for possible stale reads, a serializable range request is served locally without needing to reach consensus with other nodes in the cluster.
bool serializable = 7;- Specified by:
getSerializablein interfaceVersion.RangeRequestOrBuilder- Returns:
- The serializable.
-
getKeysOnly
public boolean getKeysOnly()keys_only when set returns only the keys and not the values.
bool keys_only = 8;- Specified by:
getKeysOnlyin interfaceVersion.RangeRequestOrBuilder- Returns:
- The keysOnly.
-
getCountOnly
public boolean getCountOnly()count_only when set returns only the count of the keys in the range.
bool count_only = 9;- Specified by:
getCountOnlyin interfaceVersion.RangeRequestOrBuilder- Returns:
- The countOnly.
-
getMinModRevision
public long getMinModRevision()min_mod_revision is the lower bound for returned key mod revisions; all keys with lesser mod revisions will be filtered away.
int64 min_mod_revision = 10;- Specified by:
getMinModRevisionin interfaceVersion.RangeRequestOrBuilder- Returns:
- The minModRevision.
-
getMaxModRevision
public long getMaxModRevision()max_mod_revision is the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.
int64 max_mod_revision = 11;- Specified by:
getMaxModRevisionin interfaceVersion.RangeRequestOrBuilder- Returns:
- The maxModRevision.
-
getMinCreateRevision
public long getMinCreateRevision()min_create_revision is the lower bound for returned key create revisions; all keys with lesser create revisions will be filtered away.
int64 min_create_revision = 12;- Specified by:
getMinCreateRevisionin interfaceVersion.RangeRequestOrBuilder- Returns:
- The minCreateRevision.
-
getMaxCreateRevision
public long getMaxCreateRevision()max_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.
int64 max_create_revision = 13;- Specified by:
getMaxCreateRevisionin interfaceVersion.RangeRequestOrBuilder- Returns:
- The maxCreateRevision.
-
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 Version.RangeRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Version.RangeRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Version.RangeRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Version.RangeRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Version.RangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Version.RangeRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Version.RangeRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Version.RangeRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Version.RangeRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Version.RangeRequest 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 Version.RangeRequest.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
-