public static final class Rpc.TxnRequest extends com.google.protobuf.GeneratedMessageV3 implements Rpc.TxnRequestOrBuilder
From google paxosdb paper: Our implementation hinges around a powerful primitive which we call MultiOp. All other database operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically and consists of three components: 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check for the absence or presence of a value, or compare with a given value. Two different tests in the guard may apply to the same or different entries in the database. All tests in the guard are applied and MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise it executes f op (see item 3 below). 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or lookup operation, and applies to a single database entry. Two different operations in the list may apply to the same or different entries in the database. These operations are executed if guard evaluates to true. 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.Protobuf type
etcdserverpb.TxnRequest| 限定符和类型 | 类和说明 |
|---|---|
static class |
Rpc.TxnRequest.Builder
From google paxosdb paper:
Our implementation hinges around a powerful primitive which we call MultiOp.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| 限定符和类型 | 字段和说明 |
|---|---|
static int |
COMPARE_FIELD_NUMBER |
static int |
FAILURE_FIELD_NUMBER |
static int |
SUCCESS_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
Rpc.Compare |
getCompare(int index)
compare is a list of predicates representing a conjunction of terms.
|
int |
getCompareCount()
compare is a list of predicates representing a conjunction of terms.
|
List<Rpc.Compare> |
getCompareList()
compare is a list of predicates representing a conjunction of terms.
|
Rpc.CompareOrBuilder |
getCompareOrBuilder(int index)
compare is a list of predicates representing a conjunction of terms.
|
List<? extends Rpc.CompareOrBuilder> |
getCompareOrBuilderList()
compare is a list of predicates representing a conjunction of terms.
|
static Rpc.TxnRequest |
getDefaultInstance() |
Rpc.TxnRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Rpc.RequestOp |
getFailure(int index)
failure is a list of requests which will be applied when compare evaluates to false.
|
int |
getFailureCount()
failure is a list of requests which will be applied when compare evaluates to false.
|
List<Rpc.RequestOp> |
getFailureList()
failure is a list of requests which will be applied when compare evaluates to false.
|
Rpc.RequestOpOrBuilder |
getFailureOrBuilder(int index)
failure is a list of requests which will be applied when compare evaluates to false.
|
List<? extends Rpc.RequestOpOrBuilder> |
getFailureOrBuilderList()
failure is a list of requests which will be applied when compare evaluates to false.
|
com.google.protobuf.Parser<Rpc.TxnRequest> |
getParserForType() |
int |
getSerializedSize() |
Rpc.RequestOp |
getSuccess(int index)
success is a list of requests which will be applied when compare evaluates to true.
|
int |
getSuccessCount()
success is a list of requests which will be applied when compare evaluates to true.
|
List<Rpc.RequestOp> |
getSuccessList()
success is a list of requests which will be applied when compare evaluates to true.
|
Rpc.RequestOpOrBuilder |
getSuccessOrBuilder(int index)
success is a list of requests which will be applied when compare evaluates to true.
|
List<? extends Rpc.RequestOpOrBuilder> |
getSuccessOrBuilderList()
success is a list of requests which will be applied when compare evaluates to true.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Rpc.TxnRequest.Builder |
newBuilder() |
static Rpc.TxnRequest.Builder |
newBuilder(Rpc.TxnRequest prototype) |
Rpc.TxnRequest.Builder |
newBuilderForType() |
protected Rpc.TxnRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Rpc.TxnRequest |
parseDelimitedFrom(InputStream input) |
static Rpc.TxnRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rpc.TxnRequest |
parseFrom(byte[] data) |
static Rpc.TxnRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rpc.TxnRequest |
parseFrom(ByteBuffer data) |
static Rpc.TxnRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rpc.TxnRequest |
parseFrom(com.google.protobuf.ByteString data) |
static Rpc.TxnRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rpc.TxnRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Rpc.TxnRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rpc.TxnRequest |
parseFrom(InputStream input) |
static Rpc.TxnRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Rpc.TxnRequest> |
parser() |
Rpc.TxnRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int COMPARE_FIELD_NUMBER
public static final int SUCCESS_FIELD_NUMBER
public static final int FAILURE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public List<Rpc.Compare> getCompareList()
compare is a list of predicates representing a conjunction of terms. If the comparisons succeed, then the success requests will be processed in order, and the response will contain their respective responses in order. If the comparisons fail, then the failure requests will be processed in order, and the response will contain their respective responses in order.
repeated .etcdserverpb.Compare compare = 1;getCompareList 在接口中 Rpc.TxnRequestOrBuilderpublic List<? extends Rpc.CompareOrBuilder> getCompareOrBuilderList()
compare is a list of predicates representing a conjunction of terms. If the comparisons succeed, then the success requests will be processed in order, and the response will contain their respective responses in order. If the comparisons fail, then the failure requests will be processed in order, and the response will contain their respective responses in order.
repeated .etcdserverpb.Compare compare = 1;public int getCompareCount()
compare is a list of predicates representing a conjunction of terms. If the comparisons succeed, then the success requests will be processed in order, and the response will contain their respective responses in order. If the comparisons fail, then the failure requests will be processed in order, and the response will contain their respective responses in order.
repeated .etcdserverpb.Compare compare = 1;getCompareCount 在接口中 Rpc.TxnRequestOrBuilderpublic Rpc.Compare getCompare(int index)
compare is a list of predicates representing a conjunction of terms. If the comparisons succeed, then the success requests will be processed in order, and the response will contain their respective responses in order. If the comparisons fail, then the failure requests will be processed in order, and the response will contain their respective responses in order.
repeated .etcdserverpb.Compare compare = 1;getCompare 在接口中 Rpc.TxnRequestOrBuilderpublic Rpc.CompareOrBuilder getCompareOrBuilder(int index)
compare is a list of predicates representing a conjunction of terms. If the comparisons succeed, then the success requests will be processed in order, and the response will contain their respective responses in order. If the comparisons fail, then the failure requests will be processed in order, and the response will contain their respective responses in order.
repeated .etcdserverpb.Compare compare = 1;getCompareOrBuilder 在接口中 Rpc.TxnRequestOrBuilderpublic List<Rpc.RequestOp> getSuccessList()
success is a list of requests which will be applied when compare evaluates to true.
repeated .etcdserverpb.RequestOp success = 2;getSuccessList 在接口中 Rpc.TxnRequestOrBuilderpublic List<? extends Rpc.RequestOpOrBuilder> getSuccessOrBuilderList()
success is a list of requests which will be applied when compare evaluates to true.
repeated .etcdserverpb.RequestOp success = 2;public int getSuccessCount()
success is a list of requests which will be applied when compare evaluates to true.
repeated .etcdserverpb.RequestOp success = 2;getSuccessCount 在接口中 Rpc.TxnRequestOrBuilderpublic Rpc.RequestOp getSuccess(int index)
success is a list of requests which will be applied when compare evaluates to true.
repeated .etcdserverpb.RequestOp success = 2;getSuccess 在接口中 Rpc.TxnRequestOrBuilderpublic Rpc.RequestOpOrBuilder getSuccessOrBuilder(int index)
success is a list of requests which will be applied when compare evaluates to true.
repeated .etcdserverpb.RequestOp success = 2;getSuccessOrBuilder 在接口中 Rpc.TxnRequestOrBuilderpublic List<Rpc.RequestOp> getFailureList()
failure is a list of requests which will be applied when compare evaluates to false.
repeated .etcdserverpb.RequestOp failure = 3;getFailureList 在接口中 Rpc.TxnRequestOrBuilderpublic List<? extends Rpc.RequestOpOrBuilder> getFailureOrBuilderList()
failure is a list of requests which will be applied when compare evaluates to false.
repeated .etcdserverpb.RequestOp failure = 3;public int getFailureCount()
failure is a list of requests which will be applied when compare evaluates to false.
repeated .etcdserverpb.RequestOp failure = 3;getFailureCount 在接口中 Rpc.TxnRequestOrBuilderpublic Rpc.RequestOp getFailure(int index)
failure is a list of requests which will be applied when compare evaluates to false.
repeated .etcdserverpb.RequestOp failure = 3;getFailure 在接口中 Rpc.TxnRequestOrBuilderpublic Rpc.RequestOpOrBuilder getFailureOrBuilder(int index)
failure is a list of requests which will be applied when compare evaluates to false.
repeated .etcdserverpb.RequestOp failure = 3;getFailureOrBuilder 在接口中 Rpc.TxnRequestOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static Rpc.TxnRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.TxnRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.TxnRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.TxnRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.TxnRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.TxnRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.TxnRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static Rpc.TxnRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Rpc.TxnRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Rpc.TxnRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Rpc.TxnRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Rpc.TxnRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Rpc.TxnRequest.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static Rpc.TxnRequest.Builder newBuilder()
public static Rpc.TxnRequest.Builder newBuilder(Rpc.TxnRequest prototype)
public Rpc.TxnRequest.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected Rpc.TxnRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static Rpc.TxnRequest getDefaultInstance()
public static com.google.protobuf.Parser<Rpc.TxnRequest> parser()
public com.google.protobuf.Parser<Rpc.TxnRequest> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public Rpc.TxnRequest getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2018. All rights reserved.