public final class TxnRequest extends com.google.protobuf.GeneratedMessageV3 implements 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| Modifier and Type | Class and Description |
|---|---|
static class |
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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COMPARE_FIELD_NUMBER |
static int |
FAILURE_FIELD_NUMBER |
static int |
SUCCESS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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<Compare> |
getCompareList()
compare is a list of predicates representing a conjunction of terms.
|
CompareOrBuilder |
getCompareOrBuilder(int index)
compare is a list of predicates representing a conjunction of terms.
|
List<? extends CompareOrBuilder> |
getCompareOrBuilderList()
compare is a list of predicates representing a conjunction of terms.
|
static TxnRequest |
getDefaultInstance() |
TxnRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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<RequestOp> |
getFailureList()
failure is a list of requests which will be applied when compare evaluates to false.
|
RequestOpOrBuilder |
getFailureOrBuilder(int index)
failure is a list of requests which will be applied when compare evaluates to false.
|
List<? extends RequestOpOrBuilder> |
getFailureOrBuilderList()
failure is a list of requests which will be applied when compare evaluates to false.
|
com.google.protobuf.Parser<TxnRequest> |
getParserForType() |
int |
getSerializedSize() |
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<RequestOp> |
getSuccessList()
success is a list of requests which will be applied when compare evaluates to true.
|
RequestOpOrBuilder |
getSuccessOrBuilder(int index)
success is a list of requests which will be applied when compare evaluates to true.
|
List<? extends 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 TxnRequest.Builder |
newBuilder() |
static TxnRequest.Builder |
newBuilder(TxnRequest prototype) |
TxnRequest.Builder |
newBuilderForType() |
protected TxnRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TxnRequest |
parseDelimitedFrom(InputStream input) |
static TxnRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TxnRequest |
parseFrom(byte[] data) |
static TxnRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TxnRequest |
parseFrom(ByteBuffer data) |
static TxnRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TxnRequest |
parseFrom(com.google.protobuf.ByteString data) |
static TxnRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TxnRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TxnRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TxnRequest |
parseFrom(InputStream input) |
static TxnRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TxnRequest> |
parser() |
TxnRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int COMPARE_FIELD_NUMBER
public static final int SUCCESS_FIELD_NUMBER
public static final int FAILURE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<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 in interface TxnRequestOrBuilderpublic List<? extends 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;getCompareOrBuilderList in interface TxnRequestOrBuilderpublic 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 in interface TxnRequestOrBuilderpublic 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 in interface TxnRequestOrBuilderpublic 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 in interface TxnRequestOrBuilderpublic List<RequestOp> getSuccessList()
success is a list of requests which will be applied when compare evaluates to true.
repeated .etcdserverpb.RequestOp success = 2;getSuccessList in interface TxnRequestOrBuilderpublic List<? extends RequestOpOrBuilder> getSuccessOrBuilderList()
success is a list of requests which will be applied when compare evaluates to true.
repeated .etcdserverpb.RequestOp success = 2;getSuccessOrBuilderList in interface TxnRequestOrBuilderpublic int getSuccessCount()
success is a list of requests which will be applied when compare evaluates to true.
repeated .etcdserverpb.RequestOp success = 2;getSuccessCount in interface TxnRequestOrBuilderpublic 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 in interface TxnRequestOrBuilderpublic 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 in interface TxnRequestOrBuilderpublic List<RequestOp> getFailureList()
failure is a list of requests which will be applied when compare evaluates to false.
repeated .etcdserverpb.RequestOp failure = 3;getFailureList in interface TxnRequestOrBuilderpublic List<? extends RequestOpOrBuilder> getFailureOrBuilderList()
failure is a list of requests which will be applied when compare evaluates to false.
repeated .etcdserverpb.RequestOp failure = 3;getFailureOrBuilderList in interface TxnRequestOrBuilderpublic int getFailureCount()
failure is a list of requests which will be applied when compare evaluates to false.
repeated .etcdserverpb.RequestOp failure = 3;getFailureCount in interface TxnRequestOrBuilderpublic 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 in interface TxnRequestOrBuilderpublic 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 in interface TxnRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TxnRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TxnRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TxnRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TxnRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TxnRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TxnRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TxnRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static TxnRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TxnRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TxnRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TxnRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TxnRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TxnRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TxnRequest.Builder newBuilder()
public static TxnRequest.Builder newBuilder(TxnRequest prototype)
public TxnRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TxnRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TxnRequest getDefaultInstance()
public static com.google.protobuf.Parser<TxnRequest> parser()
public com.google.protobuf.Parser<TxnRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TxnRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2021. All rights reserved.