Package | Description |
---|---|
org.tikv.kvproto |
Modifier and Type | Method and Description |
---|---|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.addAllIsPessimisticLock(Iterable<? extends Boolean> values)
For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.addAllMutations(Iterable<? extends Kvrpcpb.Mutation> values)
The data to be written to the database.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.addAllSecondaries(Iterable<? extends com.google.protobuf.ByteString> values)
repeated bytes secondaries = 12; |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.addIsPessimisticLock(boolean value)
For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.addMutations(int index,
Kvrpcpb.Mutation.Builder builderForValue)
The data to be written to the database.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.addMutations(int index,
Kvrpcpb.Mutation value)
The data to be written to the database.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.addMutations(Kvrpcpb.Mutation.Builder builderForValue)
The data to be written to the database.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.addMutations(Kvrpcpb.Mutation value)
The data to be written to the database.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.addSecondaries(com.google.protobuf.ByteString value)
repeated bytes secondaries = 12; |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clear() |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearAssertionLevel()
The level of assertion to use on this prewrte request.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearForUpdateTs()
For pessimistic transactions only; used to check if a conflict lock is already committed.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearIsPessimisticLock()
For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearLockTtl()
uint64 lock_ttl = 5; |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearMaxCommitTs()
The max commit ts is reserved for limiting the commit ts of 1PC or async commit, which can be used to avoid
inconsistency with schema change.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearMinCommitTs()
If min_commit_ts > 0, this is a large transaction request, the final commit_ts
will be inferred from `min_commit_ts`.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearMutations()
The data to be written to the database.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearPrimaryLock()
The client picks one key to be primary (unrelated to the primary key concept in SQL).
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearSecondaries()
repeated bytes secondaries = 12; |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearSkipConstraintCheck()
TiKV can skip some checks, used for speeding up data migration.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearStartVersion()
Identifies the transaction being written.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearTryOnePc()
When the transaction involves only one region, it's possible to commit the transaction
directly with 1PC protocol.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearTxnSize()
How many keys this transaction involves in this region.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clearUseAsyncCommit()
When async commit is enabled, `secondaries` should be set as the key list of all secondary
locks if the request prewrites the primary lock.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.clone() |
Kvrpcpb.PrewriteRequest.Builder |
Tikvpb.BatchCommandsRequest.Request.Builder.getPrewriteBuilder()
.kvrpcpb.PrewriteRequest Prewrite = 3; |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.mergeContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.mergeFrom(Kvrpcpb.PrewriteRequest other) |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.mergeFrom(com.google.protobuf.Message other) |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
static Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.newBuilder() |
static Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.newBuilder(Kvrpcpb.PrewriteRequest prototype) |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.newBuilderForType() |
protected Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.removeMutations(int index)
The data to be written to the database.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setAssertionLevel(Kvrpcpb.AssertionLevel value)
The level of assertion to use on this prewrte request.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setAssertionLevelValue(int value)
The level of assertion to use on this prewrte request.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setContext(Kvrpcpb.Context.Builder builderForValue)
.kvrpcpb.Context context = 1; |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setContext(Kvrpcpb.Context value)
.kvrpcpb.Context context = 1; |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setForUpdateTs(long value)
For pessimistic transactions only; used to check if a conflict lock is already committed.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setIsPessimisticLock(int index,
boolean value)
For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setLockTtl(long value)
uint64 lock_ttl = 5; |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setMaxCommitTs(long value)
The max commit ts is reserved for limiting the commit ts of 1PC or async commit, which can be used to avoid
inconsistency with schema change.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setMinCommitTs(long value)
If min_commit_ts > 0, this is a large transaction request, the final commit_ts
will be inferred from `min_commit_ts`.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setMutations(int index,
Kvrpcpb.Mutation.Builder builderForValue)
The data to be written to the database.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setMutations(int index,
Kvrpcpb.Mutation value)
The data to be written to the database.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setPrimaryLock(com.google.protobuf.ByteString value)
The client picks one key to be primary (unrelated to the primary key concept in SQL).
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setSecondaries(int index,
com.google.protobuf.ByteString value)
repeated bytes secondaries = 12; |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setSkipConstraintCheck(boolean value)
TiKV can skip some checks, used for speeding up data migration.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setStartVersion(long value)
Identifies the transaction being written.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setTryOnePc(boolean value)
When the transaction involves only one region, it's possible to commit the transaction
directly with 1PC protocol.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setTxnSize(long value)
How many keys this transaction involves in this region.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.Builder.setUseAsyncCommit(boolean value)
When async commit is enabled, `secondaries` should be set as the key list of all secondary
locks if the request prewrites the primary lock.
|
Kvrpcpb.PrewriteRequest.Builder |
Kvrpcpb.PrewriteRequest.toBuilder() |
Modifier and Type | Method and Description |
---|---|
Tikvpb.BatchCommandsRequest.Request.Builder |
Tikvpb.BatchCommandsRequest.Request.Builder.setPrewrite(Kvrpcpb.PrewriteRequest.Builder builderForValue)
.kvrpcpb.PrewriteRequest Prewrite = 3; |
Copyright © 2024 PingCAP. All rights reserved.