Package io.dingodb.store
Class Store.Mutation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
io.dingodb.store.Store.Mutation.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Store.MutationOrBuilder,Cloneable
- Enclosing class:
- Store.Mutation
public static final class Store.Mutation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
implements Store.MutationOrBuilder
Protobuf type
dingodb.pb.store.Mutation-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()for document index region, executor must use the DocumentWithId to do put/putifabsentclearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()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.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clearOp().dingodb.pb.store.Op op = 1;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/putifabsentclone()static final com.google.protobuf.Descriptors.Descriptorcom.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/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.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/putifabsentfor vector index region, executor must use the VectorWithId to do put/putifabsentbooleanfor document index region, executor must use the DocumentWithId to do put/putifabsentbooleanfor vector index region, executor must use the VectorWithId to do put/putifabsentprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanfor document index region, executor must use the DocumentWithId to do put/putifabsentmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Store.Mutation other) final Store.Mutation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeVector(Common.VectorWithId value) for vector index region, executor must use the VectorWithId to do put/putifabsentsetDocument(Common.DocumentWithId value) for document index region, executor must use the DocumentWithId to do put/putifabsentsetDocument(Common.DocumentWithId.Builder builderForValue) for document index region, executor must use the DocumentWithId to do put/putifabsentsetKey(com.google.protobuf.ByteString value) 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..dingodb.pb.store.Op op = 1;setOpValue(int value) .dingodb.pb.store.Op op = 1;setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final Store.Mutation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setValue(com.google.protobuf.ByteString value) 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 locksetVector(Common.VectorWithId value) for vector index region, executor must use the VectorWithId to do put/putifabsentsetVector(Common.VectorWithId.Builder builderForValue) for vector index region, executor must use the VectorWithId to do put/putifabsentMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<Store.Mutation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
-
setField
public Store.Mutation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
-
setRepeatedField
public Store.Mutation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
-
addRepeatedField
public Store.Mutation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Store.Mutation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
-
mergeFrom
public Store.Mutation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Store.Mutation.Builder>- Throws:
IOException
-
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.
-
setOpValue
.dingodb.pb.store.Op op = 1;- Parameters:
value- The enum numeric value on the wire for op to set.- Returns:
- This builder for chaining.
-
getOp
.dingodb.pb.store.Op op = 1;- Specified by:
getOpin interfaceStore.MutationOrBuilder- Returns:
- The op.
-
setOp
.dingodb.pb.store.Op op = 1;- Parameters:
value- The op to set.- Returns:
- This builder for chaining.
-
clearOp
.dingodb.pb.store.Op op = 1;- Returns:
- This builder for chaining.
-
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.
-
setKey
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;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
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;- Returns:
- This builder for chaining.
-
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.
-
setValue
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;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
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;- Returns:
- This builder for chaining.
-
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.
-
setVector
for vector index region, executor must use the VectorWithId to do put/putifabsent
.dingodb.pb.common.VectorWithId vector = 4; -
setVector
for vector index region, executor must use the VectorWithId to do put/putifabsent
.dingodb.pb.common.VectorWithId vector = 4; -
mergeVector
for vector index region, executor must use the VectorWithId to do put/putifabsent
.dingodb.pb.common.VectorWithId vector = 4; -
clearVector
for vector index region, executor must use the VectorWithId to do put/putifabsent
.dingodb.pb.common.VectorWithId vector = 4; -
getVectorBuilder
for vector index region, executor must use the VectorWithId to do put/putifabsent
.dingodb.pb.common.VectorWithId vector = 4; -
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.
-
setDocument
for document index region, executor must use the DocumentWithId to do put/putifabsent
.dingodb.pb.common.DocumentWithId document = 5; -
setDocument
for document index region, executor must use the DocumentWithId to do put/putifabsent
.dingodb.pb.common.DocumentWithId document = 5; -
mergeDocument
for document index region, executor must use the DocumentWithId to do put/putifabsent
.dingodb.pb.common.DocumentWithId document = 5; -
clearDocument
for document index region, executor must use the DocumentWithId to do put/putifabsent
.dingodb.pb.common.DocumentWithId document = 5; -
getDocumentBuilder
for document index region, executor must use the DocumentWithId to do put/putifabsent
.dingodb.pb.common.DocumentWithId document = 5; -
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
-
setUnknownFields
public final Store.Mutation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
-
mergeUnknownFields
public final Store.Mutation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Store.Mutation.Builder>
-