Package io.dingodb.store
Class Store.Mutation
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.store.Store.Mutation
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Store.MutationOrBuilder,Serializable
- Enclosing class:
- Store
public static final class Store.Mutation
extends com.google.protobuf.GeneratedMessageV3
implements Store.MutationOrBuilder
Protobuf type
dingodb.pb.store.Mutation- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.store.MutationNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Store.Mutationstatic final com.google.protobuf.Descriptors.Descriptorfor document index region, executor must use the DocumentWithId to do put/putifabsentfor document index region, executor must use the DocumentWithId to do put/putifabsentcom.google.protobuf.ByteStringgetKey()for put/putifabsent, key is the key to be put for delete, key is the key to be deleted for rollback, key is the key to be rollbacked for lock, key is the key to be locked if executor is operating a vector index region, the key must be a vector region key the vector region key is encoded from a char prefix and two int64 using big-endian, the first int64 is the part id, direct encode use big-endian.getOp().dingodb.pb.store.Op op = 1;int.dingodb.pb.store.Op op = 1;com.google.protobuf.Parser<Store.Mutation>intcom.google.protobuf.ByteStringgetValue()for store table/index region, executor use the value to do put/putifabsent for put/putifabsent, value is the value to be put for delete, value is empty for rollback, value is empty for lock, value is the extra_data executor want to store in lockfor vector index region, executor must use the VectorWithId to do put/putifabsentfor vector index region, executor must use the VectorWithId to do put/putifabsentbooleanfor document index region, executor must use the DocumentWithId to do put/putifabsentinthashCode()booleanfor vector index region, executor must use the VectorWithId to do put/putifabsentprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Store.Mutation.Builderstatic Store.Mutation.BuildernewBuilder(Store.Mutation prototype) protected Store.Mutation.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Store.MutationparseDelimitedFrom(InputStream input) static Store.MutationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.MutationparseFrom(byte[] data) static Store.MutationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.MutationparseFrom(com.google.protobuf.ByteString data) static Store.MutationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.MutationparseFrom(com.google.protobuf.CodedInputStream input) static Store.MutationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.MutationparseFrom(InputStream input) static Store.MutationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Store.MutationparseFrom(ByteBuffer data) static Store.MutationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Store.Mutation>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
OP_FIELD_NUMBER
public static final int OP_FIELD_NUMBER- See Also:
-
KEY_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER- See Also:
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER- See Also:
-
VECTOR_FIELD_NUMBER
public static final int VECTOR_FIELD_NUMBER- See Also:
-
DOCUMENT_FIELD_NUMBER
public static final int DOCUMENT_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getOpValue
public int getOpValue().dingodb.pb.store.Op op = 1;- Specified by:
getOpValuein interfaceStore.MutationOrBuilder- Returns:
- The enum numeric value on the wire for op.
-
getOp
.dingodb.pb.store.Op op = 1;- Specified by:
getOpin interfaceStore.MutationOrBuilder- Returns:
- The op.
-
getKey
public com.google.protobuf.ByteString getKey()for put/putifabsent, key is the key to be put for delete, key is the key to be deleted for rollback, key is the key to be rollbacked for lock, key is the key to be locked if executor is operating a vector index region, the key must be a vector region key the vector region key is encoded from a char prefix and two int64 using big-endian, the first int64 is the part id, direct encode use big-endian. the second int64 is the vector id, is encoded with dingo's memory comparable big-endian encoding The key MUST be 17 bytes.
bytes key = 2;- Specified by:
getKeyin interfaceStore.MutationOrBuilder- Returns:
- The key.
-
getValue
public com.google.protobuf.ByteString getValue()for store table/index region, executor use the value to do put/putifabsent for put/putifabsent, value is the value to be put for delete, value is empty for rollback, value is empty for lock, value is the extra_data executor want to store in lock
bytes value = 3;- Specified by:
getValuein interfaceStore.MutationOrBuilder- Returns:
- The value.
-
hasVector
public boolean hasVector()for vector index region, executor must use the VectorWithId to do put/putifabsent
.dingodb.pb.common.VectorWithId vector = 4;- Specified by:
hasVectorin interfaceStore.MutationOrBuilder- Returns:
- Whether the vector field is set.
-
getVector
for vector index region, executor must use the VectorWithId to do put/putifabsent
.dingodb.pb.common.VectorWithId vector = 4;- Specified by:
getVectorin interfaceStore.MutationOrBuilder- Returns:
- The vector.
-
getVectorOrBuilder
for vector index region, executor must use the VectorWithId to do put/putifabsent
.dingodb.pb.common.VectorWithId vector = 4;- Specified by:
getVectorOrBuilderin interfaceStore.MutationOrBuilder
-
hasDocument
public boolean hasDocument()for document index region, executor must use the DocumentWithId to do put/putifabsent
.dingodb.pb.common.DocumentWithId document = 5;- Specified by:
hasDocumentin interfaceStore.MutationOrBuilder- Returns:
- Whether the document field is set.
-
getDocument
for document index region, executor must use the DocumentWithId to do put/putifabsent
.dingodb.pb.common.DocumentWithId document = 5;- Specified by:
getDocumentin interfaceStore.MutationOrBuilder- Returns:
- The document.
-
getDocumentOrBuilder
for document index region, executor must use the DocumentWithId to do put/putifabsent
.dingodb.pb.common.DocumentWithId document = 5;- Specified by:
getDocumentOrBuilderin interfaceStore.MutationOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Store.Mutation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.Mutation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.Mutation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.Mutation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.Mutation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Store.Mutation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Store.Mutation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Store.Mutation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Store.Mutation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Store.Mutation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Store.Mutation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-