public static final class Kvrpcpb.Context.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.Context.Builder> implements Kvrpcpb.ContextOrBuilder
Miscellaneous metadata attached to most requests.Protobuf type
kvrpcpb.Context
Modifier and Type | Method and Description |
---|---|
Kvrpcpb.Context.Builder |
addAllCommittedLocks(Iterable<? extends Long> values)
Read request should read through locks belonging to these transactions because these
transactions are committed and theirs commit_ts <= read request's start_ts.
|
Kvrpcpb.Context.Builder |
addAllResolvedLocks(Iterable<? extends Long> values)
Read requests can ignore locks belonging to these transactions because either
these transactions are rolled back or theirs commit_ts > read request's start_ts.
|
Kvrpcpb.Context.Builder |
addCommittedLocks(long value)
Read request should read through locks belonging to these transactions because these
transactions are committed and theirs commit_ts <= read request's start_ts.
|
Kvrpcpb.Context.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.Context.Builder |
addResolvedLocks(long value)
Read requests can ignore locks belonging to these transactions because either
these transactions are rolled back or theirs commit_ts > read request's start_ts.
|
Kvrpcpb.Context |
build() |
Kvrpcpb.Context |
buildPartial() |
Kvrpcpb.Context.Builder |
clear() |
Kvrpcpb.Context.Builder |
clearApiVersion()
API version implies the encode of the key and value.
|
Kvrpcpb.Context.Builder |
clearAppliedIndex()
After a region applies to `applied_index`, we can get a
snapshot for the region even if the peer is a follower.
|
Kvrpcpb.Context.Builder |
clearCommittedLocks()
Read request should read through locks belonging to these transactions because these
transactions are committed and theirs commit_ts <= read request's start_ts.
|
Kvrpcpb.Context.Builder |
clearDiskFullOpt()
Used to tell TiKV whether operations are allowed or not on different disk usages.
|
Kvrpcpb.Context.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Kvrpcpb.Context.Builder |
clearIsolationLevel()
.kvrpcpb.IsolationLevel isolation_level = 7; |
Kvrpcpb.Context.Builder |
clearIsRetryRequest()
Indicates the request is a retry request and the same request may have been sent before.
|
Kvrpcpb.Context.Builder |
clearMaxExecutionDurationMs()
uint64 max_execution_duration_ms = 14; |
Kvrpcpb.Context.Builder |
clearNotFillCache()
bool not_fill_cache = 8; |
Kvrpcpb.Context.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Kvrpcpb.Context.Builder |
clearPeer()
.metapb.Peer peer = 3; |
Kvrpcpb.Context.Builder |
clearPriority()
.kvrpcpb.CommandPri priority = 6; |
Kvrpcpb.Context.Builder |
clearRecordScanStat()
True means RocksDB scan statistics should be recorded and returned.
|
Kvrpcpb.Context.Builder |
clearRecordTimeStat()
True means execution time statistics should be recorded and returned.
|
Kvrpcpb.Context.Builder |
clearRegionEpoch()
.metapb.RegionEpoch region_epoch = 2; |
Kvrpcpb.Context.Builder |
clearRegionId()
uint64 region_id = 1; |
Kvrpcpb.Context.Builder |
clearReplicaRead()
bool replica_read = 12; |
Kvrpcpb.Context.Builder |
clearResolvedLocks()
Read requests can ignore locks belonging to these transactions because either
these transactions are rolled back or theirs commit_ts > read request's start_ts.
|
Kvrpcpb.Context.Builder |
clearResourceGroupTag()
Any additional serialized information about the request.
|
Kvrpcpb.Context.Builder |
clearStaleRead()
Not required to read the most up-to-date data, replicas with `safe_ts` >= `start_ts`
can handle read request directly
|
Kvrpcpb.Context.Builder |
clearSyncLog()
bool sync_log = 9; |
Kvrpcpb.Context.Builder |
clearTaskId()
A hint for TiKV to schedule tasks more fairly.
|
Kvrpcpb.Context.Builder |
clearTerm()
uint64 term = 5; |
Kvrpcpb.Context.Builder |
clearTraceContext()
The informantion to trace a request sent to TiKV.
|
Kvrpcpb.Context.Builder |
clone() |
Kvrpcpb.APIVersion |
getApiVersion()
API version implies the encode of the key and value.
|
int |
getApiVersionValue()
API version implies the encode of the key and value.
|
long |
getAppliedIndex()
After a region applies to `applied_index`, we can get a
snapshot for the region even if the peer is a follower.
|
long |
getCommittedLocks(int index)
Read request should read through locks belonging to these transactions because these
transactions are committed and theirs commit_ts <= read request's start_ts.
|
int |
getCommittedLocksCount()
Read request should read through locks belonging to these transactions because these
transactions are committed and theirs commit_ts <= read request's start_ts.
|
List<Long> |
getCommittedLocksList()
Read request should read through locks belonging to these transactions because these
transactions are committed and theirs commit_ts <= read request's start_ts.
|
Kvrpcpb.Context |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Kvrpcpb.DiskFullOpt |
getDiskFullOpt()
Used to tell TiKV whether operations are allowed or not on different disk usages.
|
int |
getDiskFullOptValue()
Used to tell TiKV whether operations are allowed or not on different disk usages.
|
Kvrpcpb.IsolationLevel |
getIsolationLevel()
.kvrpcpb.IsolationLevel isolation_level = 7; |
int |
getIsolationLevelValue()
.kvrpcpb.IsolationLevel isolation_level = 7; |
boolean |
getIsRetryRequest()
Indicates the request is a retry request and the same request may have been sent before.
|
long |
getMaxExecutionDurationMs()
uint64 max_execution_duration_ms = 14; |
boolean |
getNotFillCache()
bool not_fill_cache = 8; |
Metapb.Peer |
getPeer()
.metapb.Peer peer = 3; |
Metapb.Peer.Builder |
getPeerBuilder()
.metapb.Peer peer = 3; |
Metapb.PeerOrBuilder |
getPeerOrBuilder()
.metapb.Peer peer = 3; |
Kvrpcpb.CommandPri |
getPriority()
.kvrpcpb.CommandPri priority = 6; |
int |
getPriorityValue()
.kvrpcpb.CommandPri priority = 6; |
boolean |
getRecordScanStat()
True means RocksDB scan statistics should be recorded and returned.
|
boolean |
getRecordTimeStat()
True means execution time statistics should be recorded and returned.
|
Metapb.RegionEpoch |
getRegionEpoch()
.metapb.RegionEpoch region_epoch = 2; |
Metapb.RegionEpoch.Builder |
getRegionEpochBuilder()
.metapb.RegionEpoch region_epoch = 2; |
Metapb.RegionEpochOrBuilder |
getRegionEpochOrBuilder()
.metapb.RegionEpoch region_epoch = 2; |
long |
getRegionId()
uint64 region_id = 1; |
boolean |
getReplicaRead()
bool replica_read = 12; |
long |
getResolvedLocks(int index)
Read requests can ignore locks belonging to these transactions because either
these transactions are rolled back or theirs commit_ts > read request's start_ts.
|
int |
getResolvedLocksCount()
Read requests can ignore locks belonging to these transactions because either
these transactions are rolled back or theirs commit_ts > read request's start_ts.
|
List<Long> |
getResolvedLocksList()
Read requests can ignore locks belonging to these transactions because either
these transactions are rolled back or theirs commit_ts > read request's start_ts.
|
com.google.protobuf.ByteString |
getResourceGroupTag()
Any additional serialized information about the request.
|
boolean |
getStaleRead()
Not required to read the most up-to-date data, replicas with `safe_ts` >= `start_ts`
can handle read request directly
|
boolean |
getSyncLog()
bool sync_log = 9; |
long |
getTaskId()
A hint for TiKV to schedule tasks more fairly.
|
long |
getTerm()
uint64 term = 5; |
Tracepb.TraceContext |
getTraceContext()
The informantion to trace a request sent to TiKV.
|
Tracepb.TraceContext.Builder |
getTraceContextBuilder()
The informantion to trace a request sent to TiKV.
|
Tracepb.TraceContextOrBuilder |
getTraceContextOrBuilder()
The informantion to trace a request sent to TiKV.
|
boolean |
hasPeer()
.metapb.Peer peer = 3; |
boolean |
hasRegionEpoch()
.metapb.RegionEpoch region_epoch = 2; |
boolean |
hasTraceContext()
The informantion to trace a request sent to TiKV.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Kvrpcpb.Context.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Kvrpcpb.Context.Builder |
mergeFrom(Kvrpcpb.Context other) |
Kvrpcpb.Context.Builder |
mergeFrom(com.google.protobuf.Message other) |
Kvrpcpb.Context.Builder |
mergePeer(Metapb.Peer value)
.metapb.Peer peer = 3; |
Kvrpcpb.Context.Builder |
mergeRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 2; |
Kvrpcpb.Context.Builder |
mergeTraceContext(Tracepb.TraceContext value)
The informantion to trace a request sent to TiKV.
|
Kvrpcpb.Context.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.Context.Builder |
setApiVersion(Kvrpcpb.APIVersion value)
API version implies the encode of the key and value.
|
Kvrpcpb.Context.Builder |
setApiVersionValue(int value)
API version implies the encode of the key and value.
|
Kvrpcpb.Context.Builder |
setAppliedIndex(long value)
After a region applies to `applied_index`, we can get a
snapshot for the region even if the peer is a follower.
|
Kvrpcpb.Context.Builder |
setCommittedLocks(int index,
long value)
Read request should read through locks belonging to these transactions because these
transactions are committed and theirs commit_ts <= read request's start_ts.
|
Kvrpcpb.Context.Builder |
setDiskFullOpt(Kvrpcpb.DiskFullOpt value)
Used to tell TiKV whether operations are allowed or not on different disk usages.
|
Kvrpcpb.Context.Builder |
setDiskFullOptValue(int value)
Used to tell TiKV whether operations are allowed or not on different disk usages.
|
Kvrpcpb.Context.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.Context.Builder |
setIsolationLevel(Kvrpcpb.IsolationLevel value)
.kvrpcpb.IsolationLevel isolation_level = 7; |
Kvrpcpb.Context.Builder |
setIsolationLevelValue(int value)
.kvrpcpb.IsolationLevel isolation_level = 7; |
Kvrpcpb.Context.Builder |
setIsRetryRequest(boolean value)
Indicates the request is a retry request and the same request may have been sent before.
|
Kvrpcpb.Context.Builder |
setMaxExecutionDurationMs(long value)
uint64 max_execution_duration_ms = 14; |
Kvrpcpb.Context.Builder |
setNotFillCache(boolean value)
bool not_fill_cache = 8; |
Kvrpcpb.Context.Builder |
setPeer(Metapb.Peer.Builder builderForValue)
.metapb.Peer peer = 3; |
Kvrpcpb.Context.Builder |
setPeer(Metapb.Peer value)
.metapb.Peer peer = 3; |
Kvrpcpb.Context.Builder |
setPriority(Kvrpcpb.CommandPri value)
.kvrpcpb.CommandPri priority = 6; |
Kvrpcpb.Context.Builder |
setPriorityValue(int value)
.kvrpcpb.CommandPri priority = 6; |
Kvrpcpb.Context.Builder |
setRecordScanStat(boolean value)
True means RocksDB scan statistics should be recorded and returned.
|
Kvrpcpb.Context.Builder |
setRecordTimeStat(boolean value)
True means execution time statistics should be recorded and returned.
|
Kvrpcpb.Context.Builder |
setRegionEpoch(Metapb.RegionEpoch.Builder builderForValue)
.metapb.RegionEpoch region_epoch = 2; |
Kvrpcpb.Context.Builder |
setRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 2; |
Kvrpcpb.Context.Builder |
setRegionId(long value)
uint64 region_id = 1; |
Kvrpcpb.Context.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Kvrpcpb.Context.Builder |
setReplicaRead(boolean value)
bool replica_read = 12; |
Kvrpcpb.Context.Builder |
setResolvedLocks(int index,
long value)
Read requests can ignore locks belonging to these transactions because either
these transactions are rolled back or theirs commit_ts > read request's start_ts.
|
Kvrpcpb.Context.Builder |
setResourceGroupTag(com.google.protobuf.ByteString value)
Any additional serialized information about the request.
|
Kvrpcpb.Context.Builder |
setStaleRead(boolean value)
Not required to read the most up-to-date data, replicas with `safe_ts` >= `start_ts`
can handle read request directly
|
Kvrpcpb.Context.Builder |
setSyncLog(boolean value)
bool sync_log = 9; |
Kvrpcpb.Context.Builder |
setTaskId(long value)
A hint for TiKV to schedule tasks more fairly.
|
Kvrpcpb.Context.Builder |
setTerm(long value)
uint64 term = 5; |
Kvrpcpb.Context.Builder |
setTraceContext(Tracepb.TraceContext.Builder builderForValue)
The informantion to trace a request sent to TiKV.
|
Kvrpcpb.Context.Builder |
setTraceContext(Tracepb.TraceContext value)
The informantion to trace a request sent to TiKV.
|
Kvrpcpb.Context.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.Context.Builder>
public Kvrpcpb.Context.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.Context.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.Context.Builder>
public Kvrpcpb.Context getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Kvrpcpb.Context build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.Context buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Kvrpcpb.Context.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.Context.Builder>
public Kvrpcpb.Context.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.Context.Builder>
public Kvrpcpb.Context.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.Context.Builder>
public Kvrpcpb.Context.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.Context.Builder>
public Kvrpcpb.Context.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.Context.Builder>
public Kvrpcpb.Context.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.Context.Builder>
public Kvrpcpb.Context.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Kvrpcpb.Context.Builder>
public Kvrpcpb.Context.Builder mergeFrom(Kvrpcpb.Context other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.Context.Builder>
public Kvrpcpb.Context.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.Context.Builder>
IOException
public long getRegionId()
uint64 region_id = 1;
getRegionId
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setRegionId(long value)
uint64 region_id = 1;
value
- The regionId to set.public Kvrpcpb.Context.Builder clearRegionId()
uint64 region_id = 1;
public boolean hasRegionEpoch()
.metapb.RegionEpoch region_epoch = 2;
hasRegionEpoch
in interface Kvrpcpb.ContextOrBuilder
public Metapb.RegionEpoch getRegionEpoch()
.metapb.RegionEpoch region_epoch = 2;
getRegionEpoch
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 2;
public Kvrpcpb.Context.Builder setRegionEpoch(Metapb.RegionEpoch.Builder builderForValue)
.metapb.RegionEpoch region_epoch = 2;
public Kvrpcpb.Context.Builder mergeRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 2;
public Kvrpcpb.Context.Builder clearRegionEpoch()
.metapb.RegionEpoch region_epoch = 2;
public Metapb.RegionEpoch.Builder getRegionEpochBuilder()
.metapb.RegionEpoch region_epoch = 2;
public Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder()
.metapb.RegionEpoch region_epoch = 2;
getRegionEpochOrBuilder
in interface Kvrpcpb.ContextOrBuilder
public boolean hasPeer()
.metapb.Peer peer = 3;
hasPeer
in interface Kvrpcpb.ContextOrBuilder
public Metapb.Peer getPeer()
.metapb.Peer peer = 3;
getPeer
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setPeer(Metapb.Peer value)
.metapb.Peer peer = 3;
public Kvrpcpb.Context.Builder setPeer(Metapb.Peer.Builder builderForValue)
.metapb.Peer peer = 3;
public Kvrpcpb.Context.Builder mergePeer(Metapb.Peer value)
.metapb.Peer peer = 3;
public Kvrpcpb.Context.Builder clearPeer()
.metapb.Peer peer = 3;
public Metapb.Peer.Builder getPeerBuilder()
.metapb.Peer peer = 3;
public Metapb.PeerOrBuilder getPeerOrBuilder()
.metapb.Peer peer = 3;
getPeerOrBuilder
in interface Kvrpcpb.ContextOrBuilder
public long getTerm()
uint64 term = 5;
getTerm
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setTerm(long value)
uint64 term = 5;
value
- The term to set.public Kvrpcpb.Context.Builder clearTerm()
uint64 term = 5;
public int getPriorityValue()
.kvrpcpb.CommandPri priority = 6;
getPriorityValue
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setPriorityValue(int value)
.kvrpcpb.CommandPri priority = 6;
value
- The enum numeric value on the wire for priority to set.public Kvrpcpb.CommandPri getPriority()
.kvrpcpb.CommandPri priority = 6;
getPriority
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setPriority(Kvrpcpb.CommandPri value)
.kvrpcpb.CommandPri priority = 6;
value
- The priority to set.public Kvrpcpb.Context.Builder clearPriority()
.kvrpcpb.CommandPri priority = 6;
public int getIsolationLevelValue()
.kvrpcpb.IsolationLevel isolation_level = 7;
getIsolationLevelValue
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setIsolationLevelValue(int value)
.kvrpcpb.IsolationLevel isolation_level = 7;
value
- The enum numeric value on the wire for isolationLevel to set.public Kvrpcpb.IsolationLevel getIsolationLevel()
.kvrpcpb.IsolationLevel isolation_level = 7;
getIsolationLevel
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setIsolationLevel(Kvrpcpb.IsolationLevel value)
.kvrpcpb.IsolationLevel isolation_level = 7;
value
- The isolationLevel to set.public Kvrpcpb.Context.Builder clearIsolationLevel()
.kvrpcpb.IsolationLevel isolation_level = 7;
public boolean getNotFillCache()
bool not_fill_cache = 8;
getNotFillCache
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setNotFillCache(boolean value)
bool not_fill_cache = 8;
value
- The notFillCache to set.public Kvrpcpb.Context.Builder clearNotFillCache()
bool not_fill_cache = 8;
public boolean getSyncLog()
bool sync_log = 9;
getSyncLog
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setSyncLog(boolean value)
bool sync_log = 9;
value
- The syncLog to set.public Kvrpcpb.Context.Builder clearSyncLog()
bool sync_log = 9;
public boolean getRecordTimeStat()
True means execution time statistics should be recorded and returned.
bool record_time_stat = 10;
getRecordTimeStat
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setRecordTimeStat(boolean value)
True means execution time statistics should be recorded and returned.
bool record_time_stat = 10;
value
- The recordTimeStat to set.public Kvrpcpb.Context.Builder clearRecordTimeStat()
True means execution time statistics should be recorded and returned.
bool record_time_stat = 10;
public boolean getRecordScanStat()
True means RocksDB scan statistics should be recorded and returned.
bool record_scan_stat = 11;
getRecordScanStat
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setRecordScanStat(boolean value)
True means RocksDB scan statistics should be recorded and returned.
bool record_scan_stat = 11;
value
- The recordScanStat to set.public Kvrpcpb.Context.Builder clearRecordScanStat()
True means RocksDB scan statistics should be recorded and returned.
bool record_scan_stat = 11;
public boolean getReplicaRead()
bool replica_read = 12;
getReplicaRead
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setReplicaRead(boolean value)
bool replica_read = 12;
value
- The replicaRead to set.public Kvrpcpb.Context.Builder clearReplicaRead()
bool replica_read = 12;
public List<Long> getResolvedLocksList()
Read requests can ignore locks belonging to these transactions because either these transactions are rolled back or theirs commit_ts > read request's start_ts.
repeated uint64 resolved_locks = 13;
getResolvedLocksList
in interface Kvrpcpb.ContextOrBuilder
public int getResolvedLocksCount()
Read requests can ignore locks belonging to these transactions because either these transactions are rolled back or theirs commit_ts > read request's start_ts.
repeated uint64 resolved_locks = 13;
getResolvedLocksCount
in interface Kvrpcpb.ContextOrBuilder
public long getResolvedLocks(int index)
Read requests can ignore locks belonging to these transactions because either these transactions are rolled back or theirs commit_ts > read request's start_ts.
repeated uint64 resolved_locks = 13;
getResolvedLocks
in interface Kvrpcpb.ContextOrBuilder
index
- The index of the element to return.public Kvrpcpb.Context.Builder setResolvedLocks(int index, long value)
Read requests can ignore locks belonging to these transactions because either these transactions are rolled back or theirs commit_ts > read request's start_ts.
repeated uint64 resolved_locks = 13;
index
- The index to set the value at.value
- The resolvedLocks to set.public Kvrpcpb.Context.Builder addResolvedLocks(long value)
Read requests can ignore locks belonging to these transactions because either these transactions are rolled back or theirs commit_ts > read request's start_ts.
repeated uint64 resolved_locks = 13;
value
- The resolvedLocks to add.public Kvrpcpb.Context.Builder addAllResolvedLocks(Iterable<? extends Long> values)
Read requests can ignore locks belonging to these transactions because either these transactions are rolled back or theirs commit_ts > read request's start_ts.
repeated uint64 resolved_locks = 13;
values
- The resolvedLocks to add.public Kvrpcpb.Context.Builder clearResolvedLocks()
Read requests can ignore locks belonging to these transactions because either these transactions are rolled back or theirs commit_ts > read request's start_ts.
repeated uint64 resolved_locks = 13;
public long getMaxExecutionDurationMs()
uint64 max_execution_duration_ms = 14;
getMaxExecutionDurationMs
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setMaxExecutionDurationMs(long value)
uint64 max_execution_duration_ms = 14;
value
- The maxExecutionDurationMs to set.public Kvrpcpb.Context.Builder clearMaxExecutionDurationMs()
uint64 max_execution_duration_ms = 14;
public long getAppliedIndex()
After a region applies to `applied_index`, we can get a snapshot for the region even if the peer is a follower.
uint64 applied_index = 15;
getAppliedIndex
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setAppliedIndex(long value)
After a region applies to `applied_index`, we can get a snapshot for the region even if the peer is a follower.
uint64 applied_index = 15;
value
- The appliedIndex to set.public Kvrpcpb.Context.Builder clearAppliedIndex()
After a region applies to `applied_index`, we can get a snapshot for the region even if the peer is a follower.
uint64 applied_index = 15;
public long getTaskId()
A hint for TiKV to schedule tasks more fairly. Query with same task ID may share same priority and resource quota.
uint64 task_id = 16;
getTaskId
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setTaskId(long value)
A hint for TiKV to schedule tasks more fairly. Query with same task ID may share same priority and resource quota.
uint64 task_id = 16;
value
- The taskId to set.public Kvrpcpb.Context.Builder clearTaskId()
A hint for TiKV to schedule tasks more fairly. Query with same task ID may share same priority and resource quota.
uint64 task_id = 16;
public boolean getStaleRead()
Not required to read the most up-to-date data, replicas with `safe_ts` >= `start_ts` can handle read request directly
bool stale_read = 17;
getStaleRead
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setStaleRead(boolean value)
Not required to read the most up-to-date data, replicas with `safe_ts` >= `start_ts` can handle read request directly
bool stale_read = 17;
value
- The staleRead to set.public Kvrpcpb.Context.Builder clearStaleRead()
Not required to read the most up-to-date data, replicas with `safe_ts` >= `start_ts` can handle read request directly
bool stale_read = 17;
public com.google.protobuf.ByteString getResourceGroupTag()
Any additional serialized information about the request.
bytes resource_group_tag = 18;
getResourceGroupTag
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setResourceGroupTag(com.google.protobuf.ByteString value)
Any additional serialized information about the request.
bytes resource_group_tag = 18;
value
- The resourceGroupTag to set.public Kvrpcpb.Context.Builder clearResourceGroupTag()
Any additional serialized information about the request.
bytes resource_group_tag = 18;
public int getDiskFullOptValue()
Used to tell TiKV whether operations are allowed or not on different disk usages.
.kvrpcpb.DiskFullOpt disk_full_opt = 19;
getDiskFullOptValue
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setDiskFullOptValue(int value)
Used to tell TiKV whether operations are allowed or not on different disk usages.
.kvrpcpb.DiskFullOpt disk_full_opt = 19;
value
- The enum numeric value on the wire for diskFullOpt to set.public Kvrpcpb.DiskFullOpt getDiskFullOpt()
Used to tell TiKV whether operations are allowed or not on different disk usages.
.kvrpcpb.DiskFullOpt disk_full_opt = 19;
getDiskFullOpt
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setDiskFullOpt(Kvrpcpb.DiskFullOpt value)
Used to tell TiKV whether operations are allowed or not on different disk usages.
.kvrpcpb.DiskFullOpt disk_full_opt = 19;
value
- The diskFullOpt to set.public Kvrpcpb.Context.Builder clearDiskFullOpt()
Used to tell TiKV whether operations are allowed or not on different disk usages.
.kvrpcpb.DiskFullOpt disk_full_opt = 19;
public boolean getIsRetryRequest()
Indicates the request is a retry request and the same request may have been sent before.
bool is_retry_request = 20;
getIsRetryRequest
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setIsRetryRequest(boolean value)
Indicates the request is a retry request and the same request may have been sent before.
bool is_retry_request = 20;
value
- The isRetryRequest to set.public Kvrpcpb.Context.Builder clearIsRetryRequest()
Indicates the request is a retry request and the same request may have been sent before.
bool is_retry_request = 20;
public int getApiVersionValue()
API version implies the encode of the key and value.
.kvrpcpb.APIVersion api_version = 21;
getApiVersionValue
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setApiVersionValue(int value)
API version implies the encode of the key and value.
.kvrpcpb.APIVersion api_version = 21;
value
- The enum numeric value on the wire for apiVersion to set.public Kvrpcpb.APIVersion getApiVersion()
API version implies the encode of the key and value.
.kvrpcpb.APIVersion api_version = 21;
getApiVersion
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setApiVersion(Kvrpcpb.APIVersion value)
API version implies the encode of the key and value.
.kvrpcpb.APIVersion api_version = 21;
value
- The apiVersion to set.public Kvrpcpb.Context.Builder clearApiVersion()
API version implies the encode of the key and value.
.kvrpcpb.APIVersion api_version = 21;
public List<Long> getCommittedLocksList()
Read request should read through locks belonging to these transactions because these transactions are committed and theirs commit_ts <= read request's start_ts.
repeated uint64 committed_locks = 22;
getCommittedLocksList
in interface Kvrpcpb.ContextOrBuilder
public int getCommittedLocksCount()
Read request should read through locks belonging to these transactions because these transactions are committed and theirs commit_ts <= read request's start_ts.
repeated uint64 committed_locks = 22;
getCommittedLocksCount
in interface Kvrpcpb.ContextOrBuilder
public long getCommittedLocks(int index)
Read request should read through locks belonging to these transactions because these transactions are committed and theirs commit_ts <= read request's start_ts.
repeated uint64 committed_locks = 22;
getCommittedLocks
in interface Kvrpcpb.ContextOrBuilder
index
- The index of the element to return.public Kvrpcpb.Context.Builder setCommittedLocks(int index, long value)
Read request should read through locks belonging to these transactions because these transactions are committed and theirs commit_ts <= read request's start_ts.
repeated uint64 committed_locks = 22;
index
- The index to set the value at.value
- The committedLocks to set.public Kvrpcpb.Context.Builder addCommittedLocks(long value)
Read request should read through locks belonging to these transactions because these transactions are committed and theirs commit_ts <= read request's start_ts.
repeated uint64 committed_locks = 22;
value
- The committedLocks to add.public Kvrpcpb.Context.Builder addAllCommittedLocks(Iterable<? extends Long> values)
Read request should read through locks belonging to these transactions because these transactions are committed and theirs commit_ts <= read request's start_ts.
repeated uint64 committed_locks = 22;
values
- The committedLocks to add.public Kvrpcpb.Context.Builder clearCommittedLocks()
Read request should read through locks belonging to these transactions because these transactions are committed and theirs commit_ts <= read request's start_ts.
repeated uint64 committed_locks = 22;
public boolean hasTraceContext()
The informantion to trace a request sent to TiKV.
.tracepb.TraceContext trace_context = 23;
hasTraceContext
in interface Kvrpcpb.ContextOrBuilder
public Tracepb.TraceContext getTraceContext()
The informantion to trace a request sent to TiKV.
.tracepb.TraceContext trace_context = 23;
getTraceContext
in interface Kvrpcpb.ContextOrBuilder
public Kvrpcpb.Context.Builder setTraceContext(Tracepb.TraceContext value)
The informantion to trace a request sent to TiKV.
.tracepb.TraceContext trace_context = 23;
public Kvrpcpb.Context.Builder setTraceContext(Tracepb.TraceContext.Builder builderForValue)
The informantion to trace a request sent to TiKV.
.tracepb.TraceContext trace_context = 23;
public Kvrpcpb.Context.Builder mergeTraceContext(Tracepb.TraceContext value)
The informantion to trace a request sent to TiKV.
.tracepb.TraceContext trace_context = 23;
public Kvrpcpb.Context.Builder clearTraceContext()
The informantion to trace a request sent to TiKV.
.tracepb.TraceContext trace_context = 23;
public Tracepb.TraceContext.Builder getTraceContextBuilder()
The informantion to trace a request sent to TiKV.
.tracepb.TraceContext trace_context = 23;
public Tracepb.TraceContextOrBuilder getTraceContextOrBuilder()
The informantion to trace a request sent to TiKV.
.tracepb.TraceContext trace_context = 23;
getTraceContextOrBuilder
in interface Kvrpcpb.ContextOrBuilder
public final Kvrpcpb.Context.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.Context.Builder>
public final Kvrpcpb.Context.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Kvrpcpb.Context.Builder>
Copyright © 2024 PingCAP. All rights reserved.