Package io.dingodb.store
Interface Store.MutationOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Store.Mutation,Store.Mutation.Builder
- Enclosing class:
- Store
public static interface Store.MutationOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionfor 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/putifabsentbooleanfor document index region, executor must use the DocumentWithId to do put/putifabsentbooleanfor vector index region, executor must use the VectorWithId to do put/putifabsentMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getOpValue
int getOpValue().dingodb.pb.store.Op op = 1;- Returns:
- The enum numeric value on the wire for op.
-
getOp
Store.Op getOp().dingodb.pb.store.Op op = 1;- Returns:
- The op.
-
getKey
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;- Returns:
- The key.
-
getValue
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;- Returns:
- The value.
-
hasVector
boolean hasVector()for vector index region, executor must use the VectorWithId to do put/putifabsent
.dingodb.pb.common.VectorWithId vector = 4;- Returns:
- Whether the vector field is set.
-
getVector
Common.VectorWithId getVector()for vector index region, executor must use the VectorWithId to do put/putifabsent
.dingodb.pb.common.VectorWithId vector = 4;- Returns:
- The vector.
-
getVectorOrBuilder
Common.VectorWithIdOrBuilder getVectorOrBuilder()for vector index region, executor must use the VectorWithId to do put/putifabsent
.dingodb.pb.common.VectorWithId vector = 4; -
hasDocument
boolean hasDocument()for document index region, executor must use the DocumentWithId to do put/putifabsent
.dingodb.pb.common.DocumentWithId document = 5;- Returns:
- Whether the document field is set.
-
getDocument
Common.DocumentWithId getDocument()for document index region, executor must use the DocumentWithId to do put/putifabsent
.dingodb.pb.common.DocumentWithId document = 5;- Returns:
- The document.
-
getDocumentOrBuilder
Common.DocumentWithIdOrBuilder getDocumentOrBuilder()for document index region, executor must use the DocumentWithId to do put/putifabsent
.dingodb.pb.common.DocumentWithId document = 5;
-