public static final class Kvrpcpb.ScanRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder> implements Kvrpcpb.ScanRequestOrBuilder
Scan fetches values for a range of keys; it is part of the transaction with starting timestamp = `version`.Protobuf type
kvrpcpb.ScanRequest
Modifier and Type | Method and Description |
---|---|
Kvrpcpb.ScanRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.ScanRequest |
build() |
Kvrpcpb.ScanRequest |
buildPartial() |
Kvrpcpb.ScanRequest.Builder |
clear() |
Kvrpcpb.ScanRequest.Builder |
clearContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ScanRequest.Builder |
clearEndKey()
For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
|
Kvrpcpb.ScanRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Kvrpcpb.ScanRequest.Builder |
clearKeyOnly()
Return only the keys found by scanning, not their values.
|
Kvrpcpb.ScanRequest.Builder |
clearLimit()
The maximum number of results to return.
|
Kvrpcpb.ScanRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Kvrpcpb.ScanRequest.Builder |
clearReverse()
bool reverse = 6; |
Kvrpcpb.ScanRequest.Builder |
clearSampleStep()
If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key.
|
Kvrpcpb.ScanRequest.Builder |
clearStartKey()
bytes start_key = 2; |
Kvrpcpb.ScanRequest.Builder |
clearVersion()
uint64 version = 4; |
Kvrpcpb.ScanRequest.Builder |
clone() |
Kvrpcpb.Context |
getContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.Context.Builder |
getContextBuilder()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ContextOrBuilder |
getContextOrBuilder()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ScanRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getEndKey()
For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
|
boolean |
getKeyOnly()
Return only the keys found by scanning, not their values.
|
int |
getLimit()
The maximum number of results to return.
|
boolean |
getReverse()
bool reverse = 6; |
int |
getSampleStep()
If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key.
|
com.google.protobuf.ByteString |
getStartKey()
bytes start_key = 2; |
long |
getVersion()
uint64 version = 4; |
boolean |
hasContext()
.kvrpcpb.Context context = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Kvrpcpb.ScanRequest.Builder |
mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.ScanRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Kvrpcpb.ScanRequest.Builder |
mergeFrom(Kvrpcpb.ScanRequest other) |
Kvrpcpb.ScanRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
Kvrpcpb.ScanRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.ScanRequest.Builder |
setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1; |
Kvrpcpb.ScanRequest.Builder |
setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.ScanRequest.Builder |
setEndKey(com.google.protobuf.ByteString value)
For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
|
Kvrpcpb.ScanRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.ScanRequest.Builder |
setKeyOnly(boolean value)
Return only the keys found by scanning, not their values.
|
Kvrpcpb.ScanRequest.Builder |
setLimit(int value)
The maximum number of results to return.
|
Kvrpcpb.ScanRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Kvrpcpb.ScanRequest.Builder |
setReverse(boolean value)
bool reverse = 6; |
Kvrpcpb.ScanRequest.Builder |
setSampleStep(int value)
If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key.
|
Kvrpcpb.ScanRequest.Builder |
setStartKey(com.google.protobuf.ByteString value)
bytes start_key = 2; |
Kvrpcpb.ScanRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.ScanRequest.Builder |
setVersion(long value)
uint64 version = 4; |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
public Kvrpcpb.ScanRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
public Kvrpcpb.ScanRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Kvrpcpb.ScanRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.ScanRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.ScanRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
public Kvrpcpb.ScanRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
public Kvrpcpb.ScanRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
public Kvrpcpb.ScanRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
public Kvrpcpb.ScanRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
public Kvrpcpb.ScanRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
public Kvrpcpb.ScanRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.ScanRequest.Builder>
public Kvrpcpb.ScanRequest.Builder mergeFrom(Kvrpcpb.ScanRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
public Kvrpcpb.ScanRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.ScanRequest.Builder>
IOException
public boolean hasContext()
.kvrpcpb.Context context = 1;
hasContext
in interface Kvrpcpb.ScanRequestOrBuilder
public Kvrpcpb.Context getContext()
.kvrpcpb.Context context = 1;
getContext
in interface Kvrpcpb.ScanRequestOrBuilder
public Kvrpcpb.ScanRequest.Builder setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;
public Kvrpcpb.ScanRequest.Builder setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1;
public Kvrpcpb.ScanRequest.Builder mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1;
public Kvrpcpb.ScanRequest.Builder clearContext()
.kvrpcpb.Context context = 1;
public Kvrpcpb.Context.Builder getContextBuilder()
.kvrpcpb.Context context = 1;
public Kvrpcpb.ContextOrBuilder getContextOrBuilder()
.kvrpcpb.Context context = 1;
getContextOrBuilder
in interface Kvrpcpb.ScanRequestOrBuilder
public com.google.protobuf.ByteString getStartKey()
bytes start_key = 2;
getStartKey
in interface Kvrpcpb.ScanRequestOrBuilder
public Kvrpcpb.ScanRequest.Builder setStartKey(com.google.protobuf.ByteString value)
bytes start_key = 2;
value
- The startKey to set.public Kvrpcpb.ScanRequest.Builder clearStartKey()
bytes start_key = 2;
public int getLimit()
The maximum number of results to return.
uint32 limit = 3;
getLimit
in interface Kvrpcpb.ScanRequestOrBuilder
public Kvrpcpb.ScanRequest.Builder setLimit(int value)
The maximum number of results to return.
uint32 limit = 3;
value
- The limit to set.public Kvrpcpb.ScanRequest.Builder clearLimit()
The maximum number of results to return.
uint32 limit = 3;
public long getVersion()
uint64 version = 4;
getVersion
in interface Kvrpcpb.ScanRequestOrBuilder
public Kvrpcpb.ScanRequest.Builder setVersion(long value)
uint64 version = 4;
value
- The version to set.public Kvrpcpb.ScanRequest.Builder clearVersion()
uint64 version = 4;
public boolean getKeyOnly()
Return only the keys found by scanning, not their values.
bool key_only = 5;
getKeyOnly
in interface Kvrpcpb.ScanRequestOrBuilder
public Kvrpcpb.ScanRequest.Builder setKeyOnly(boolean value)
Return only the keys found by scanning, not their values.
bool key_only = 5;
value
- The keyOnly to set.public Kvrpcpb.ScanRequest.Builder clearKeyOnly()
Return only the keys found by scanning, not their values.
bool key_only = 5;
public boolean getReverse()
bool reverse = 6;
getReverse
in interface Kvrpcpb.ScanRequestOrBuilder
public Kvrpcpb.ScanRequest.Builder setReverse(boolean value)
bool reverse = 6;
value
- The reverse to set.public Kvrpcpb.ScanRequest.Builder clearReverse()
bool reverse = 6;
public com.google.protobuf.ByteString getEndKey()
For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key; and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
bytes end_key = 7;
getEndKey
in interface Kvrpcpb.ScanRequestOrBuilder
public Kvrpcpb.ScanRequest.Builder setEndKey(com.google.protobuf.ByteString value)
For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key; and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
bytes end_key = 7;
value
- The endKey to set.public Kvrpcpb.ScanRequest.Builder clearEndKey()
For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key; and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
bytes end_key = 7;
public int getSampleStep()
If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key. locks are not checked.
uint32 sample_step = 8;
getSampleStep
in interface Kvrpcpb.ScanRequestOrBuilder
public Kvrpcpb.ScanRequest.Builder setSampleStep(int value)
If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key. locks are not checked.
uint32 sample_step = 8;
value
- The sampleStep to set.public Kvrpcpb.ScanRequest.Builder clearSampleStep()
If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key. locks are not checked.
uint32 sample_step = 8;
public final Kvrpcpb.ScanRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
public final Kvrpcpb.ScanRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.ScanRequest.Builder>
Copyright © 2024 PingCAP. All rights reserved.