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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type dingodb.pb.version.RangeRequest

    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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    count_only when set returns only the count of the keys in the range.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.ByteString
    key is the first key for the range.
    boolean
    keys_only when set returns only the keys and not the values.
    long
    limit is a limit on the number of keys returned for the request.
    long
    max_create_revision is the upper bound for returned key create revisions; all keys with greater create revisions will be filtered away.
    long
    max_mod_revision is the upper bound for returned key mod revisions; all keys with greater mod revisions will be filtered away.
    long
    min_create_revision is the lower bound for returned key create revisions; all keys with lesser create revisions will be filtered away.
    long
    min_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.ByteString
    range_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;
    long
    revision is the point-in-time of the key-value store to use for the range.
    boolean
    serializable sets the range request to use serializable member-local reads.
    int
     
    int
     
    boolean
    .dingodb.pb.common.RequestInfo request_info = 1;
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    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, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Version.RangeRequest>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods 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

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasRequestInfo

      public boolean hasRequestInfo()
      .dingodb.pb.common.RequestInfo request_info = 1;
      Specified by:
      hasRequestInfo in interface Version.RangeRequestOrBuilder
      Returns:
      Whether the requestInfo field is set.
    • getRequestInfo

      public Common.RequestInfo getRequestInfo()
      .dingodb.pb.common.RequestInfo request_info = 1;
      Specified by:
      getRequestInfo in interface Version.RangeRequestOrBuilder
      Returns:
      The requestInfo.
    • getRequestInfoOrBuilder

      public Common.RequestInfoOrBuilder getRequestInfoOrBuilder()
      .dingodb.pb.common.RequestInfo request_info = 1;
      Specified by:
      getRequestInfoOrBuilder in interface Version.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:
      getKey in interface Version.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:
      getRangeEnd in interface Version.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:
      getLimit in interface Version.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:
      getRevision in interface Version.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:
      getSerializable in interface Version.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:
      getKeysOnly in interface Version.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:
      getCountOnly in interface Version.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:
      getMinModRevision in interface Version.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:
      getMaxModRevision in interface Version.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:
      getMinCreateRevision in interface Version.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:
      getMaxCreateRevision in interface Version.RangeRequestOrBuilder
      Returns:
      The maxCreateRevision.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Version.RangeRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Version.RangeRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Version.RangeRequest parseDelimitedFrom(InputStream input) throws IOException
      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

      public Version.RangeRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Version.RangeRequest.Builder newBuilder()
    • newBuilder

      public static Version.RangeRequest.Builder newBuilder(Version.RangeRequest prototype)
    • toBuilder

      public Version.RangeRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Version.RangeRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Version.RangeRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Version.RangeRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<Version.RangeRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Version.RangeRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder